예제 #1
0
 static function charCodeAt($s, $index)
 {
     return haxe_Utf8::uord(haxe_Utf8::sub($s, $index, 1));
 }
예제 #2
0
 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);
 }