Example #1
0
 static function uchr($i)
 {
     $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();
 }
Example #2
0
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();
}
Example #3
0
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();
}
Example #4
0
function com_wiris_util_xml_WCharacterBase_0(&$c, &$i, &$j, &$mirroredStr, &$str)
{
    $s = new haxe_Utf8(null);
    $s->addChar($c);
    return $s->toString();
}
Example #5
0
function com_wiris_util_json_JSon_8(&$»this, &$d, &$sb)
{
    $s = new haxe_Utf8(null);
    $s->addChar($»this->c);
    return $s->toString();
}
Example #6
0
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();
}
Example #7
0
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("\"");
 }
Example #10
0
function com_wiris_plugin_impl_TextFilter_0()
{
    $s = new haxe_Utf8(null);
    $s->addChar(160);
    return $s->toString();
}
Example #11
0
function com_wiris_util_json_StringParser_0(&$»this)
{
    $s = new haxe_Utf8(null);
    $s->addChar($»this->c);
    return $s->toString();
}
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();
}