function com_wiris_common_WInteger_0(&$d, &$digits, &$s, &$x) { $i = $d + ($d >= 10 ? 55 : 48); $s1 = new haxe_Utf8(null); if ($i < 65536) { $s1->addChar($i); } else { if ($i <= 1114111) { $s1->addChar(($i >> 10) + 55232); $s1->addChar(($i & 1023) + 56320); } else { throw new HException("Invalid code point."); } } return $s1->toString(); }
public function nextSafeToken() { if ($this->i < $this->n) { $this->c = haxe_Utf8::charCodeAt(_hx_substr($this->str, $this->i, null), 0); $this->i += strlen(com_wiris_util_json_StringParser_0($this)); } else { $this->c = -1; } }
function com_wiris_util_xml_WXmlUtils_5(&$c, &$hex, &$i, &$j, &$n, &$s, &$sb) { $s1 = new haxe_Utf8(null); $s1->addChar($c); return $s1->toString(); }
function com_wiris_util_xml_WCharacterBase_0(&$c, &$i, &$j, &$mirroredStr, &$str) { $s = new haxe_Utf8(null); $s->addChar($c); return $s->toString(); }
function com_wiris_util_json_JSon_8(&$»this, &$d, &$sb) { $s = new haxe_Utf8(null); $s->addChar($»this->c); return $s->toString(); }
function com_wiris_plugin_impl_TestImpl_2(&$»this, &$condition, &$ex, &$imageUrl, &$mml, &$outp, &$output, &$p, &$param, &$platform, &$random, &$reportText, &$s2, &$solutionLink, &$testName) { $s = new haxe_Utf8(null); $s->addChar(168); return $s->toString(); }
function com_wiris_util_json_JSon_2(&$»this, &$d, &$sb) { $i = $»this->c; $s = new haxe_Utf8(null); if ($i < 65536) { $s->addChar($i); } else { if ($i <= 1114111) { $s->addChar(($i >> 10) + 55232); $s->addChar(($i & 1023) + 56320); } else { throw new HException("Invalid code point."); } } return $s->toString(); }
function com_wiris_plugin_impl_TextFilterTags_3(&$tags) { $s = new haxe_Utf8(null); $s->addChar(168); return $s->toString(); }
public function quoteUtf8($s) { $u = new haxe_Utf8(null); haxe_Utf8::iter($s, array(new _hx_lambda(array(&$u), "haxe_format_JsonPrinter_0"), 'execute')); $this->buf->add("\""); $this->buf->add($u->toString()); $this->buf->add("\""); }
function com_wiris_plugin_impl_TextFilter_0() { $s = new haxe_Utf8(null); $s->addChar(160); return $s->toString(); }
static function charCodeAt($s, $index) { return haxe_Utf8::uord(haxe_Utf8::sub($s, $index, 1)); }
public function testResponse($status, $charset, $args = null) { if ($args->language === null) { $args->language = "en-au"; } if ($args->contentType === null) { $args->contentType = "text/html"; } if ($args->content === null) { $args->content = "response content"; } if ($args->cookieName === null) { $args->cookieName = "sessionid"; } if ($args->cookieVal === null) { $args->cookieVal = "123456"; } $this->context->response->status = $status; $this->context->response->charset = $charset; $this->context->response->set_contentType($args->contentType); $expiryDate = new Date(2015, 0, 1, 0, 0, 0); $c1 = new ufront_web_HttpCookie($args->cookieName, $args->cookieVal, $expiryDate, "/testresponse/", null, null, null); $this->context->response->setCookie($c1); $this->context->response->setHeader("X-Powered-By", "Ufront"); $this->context->response->setHeader("Content-Language", $args->language); return haxe_Utf8::encode($args->content); }
static function sub($s, $pos, $len) { $start = com_wiris_system_Utf8_3($len, $pos, $s); $end = com_wiris_system_Utf8_4($len, $pos, $s, $start); return haxe_Utf8::sub($s, $start, $end - $start); }
function com_wiris_common_WInteger_0(&$d, &$digits, &$s, &$x) { $s1 = new haxe_Utf8(null); $s1->addChar($d + ($d >= 10 ? 55 : 48)); return $s1->toString(); }