Lines Matching refs:char

176 		foreach ($earr as $char) {
177 $ucd_record = Ucdn::get_ucd_record($char);
181 if ($char == 1757) {
209 $charasstr = $this->unicode_hex($char);
213 } elseif ($char == 32 || $char == 12288) {
220 $OTLdata[$subchunk][$charctr]['uni'] = $char;
548 $char = $this->OTLdata[$ptr]['uni'];
549 $sub = Indic::decompose_indic($char);
571 if ($char == 0x09AF && isset($this->OTLdata[$ptr + 1]) && $this->OTLdata[$ptr + 1]['uni'] == 0x09BC) {
593 //$c['uni'] = $char;
747 //$c['uni'] = $char;
853 $char = $this->OTLdata[$ptr]['uni'];
854 if (($char & ~0x0080) == 0x0E33) { // if SARA_AM (U+0E33 or U+0EB3)
855 $NIKHAHIT = $char + 0x1A;
856 $SARA_AA = $char - 1;
931 $char = $this->OTLdata[$ptr]['uni'];
932 $sub = Indic::decompose_indic($char);
992 // Make sure after GSUB that wordend has not been moved - check next char is not in the same syllable
2437 // Get types of new inserted chars - or replicate type of char being replaced
2595 // While next char to right is a mark (but not the next matched glyph)
2617 // Get types of new inserted chars - or replicate type of char being replaced
2899 private function get_arab_glyphs($char, $type, &$chars, $i, $scriptTag, $usetags)
2903 return [$char, 0];
2909 if ($scriptTag == 'syrc' && $char == '00710') {
2914 // not in $this->arabLeftJoining i.e. not a char which can join to the next one
2917 if (isset($chars[$i + 1]) && preg_match('/[\x{0700}-\x{0745}]/u', UtfString::code2utf(hexdec($chars[$n]))) && preg_match('/[\x{0700}-\x{0745}]/u', UtfString::code2utf(hexdec($chars[$i + 1]))) && isset($this->arabGlyphs[$char][4])) {
2922 if (strpos('0715|0716|072A', $chars[$n]) !== false && isset($this->arabGlyphs[$char][6])) {
2925 elseif (isset($this->arabGlyphs[$char][5])) {
2931 return [$this->arabGlyphs[$char][$retk], $retk];
2933 return [$char, 0];
2937 if (($type > 0 || $type === 0) && isset($this->arabGlyphs[$char][$type])) {
2939 } elseif ($type == 3 && isset($this->arabGlyphs[$char][1])) { // if <medial> not defined, but <final>, return <final>
2941 } elseif ($type == 2 && isset($this->arabGlyphs[$char][0])) { // if <initial> not defined, but <isolated>, return <isolated>
2947 if (isset($this->arabGlyphs[$char]['prel'][$retk]) && $this->arabGlyphs[$char]['prel'][$retk]) {
2949 foreach ($this->arabGlyphs[$char]['prel'][$retk] as $k => $v) { // $k starts 0, 1...
2953 while (strpos($this->arabGlyphs[$char]['ignore'][$retk], $chars[$i - $ig - $k]) !== false) { // ignore
2964 if (isset($this->arabGlyphs[$char]['postl'][$retk]) && $this->arabGlyphs[$char]['postl'][$retk]) {
2966 foreach ($this->arabGlyphs[$char]['postl'][$retk] as $k => $v) { // $k starts 0, 1...
2970 while (strpos($this->arabGlyphs[$char]['ignore'][$retk], $chars[$i + $ig + $k]) !== false) { // ignore
2982 return [$this->arabGlyphs[$char][$retk], $retk];
2984 return [$char, 0];
2987 return [$char, 0];
4683 $chardata[] = ['char' => $chunkOTLdata['char_data'][$i]['uni'], 'level' => $cel, 'type' => $chardir, 'group' => $chunkOTLdata['group'][$i], 'GPOSinfo' => $gpos];
4835 if ($i == 0) { // first char
4849 if ($j == ($numchars - 1)) { // last char
4927 if (isset(Ucdn::$mirror_pairs[$chardata[$i]['char']]) && $chardata[$i]['type'] == Ucdn::BIDI_CLASS_R) {
4928 $chardata[$i]['char'] = Ucdn::$mirror_pairs[$chardata[$i]['char']];
4955 $e .= UtfString::code2utf($cd['char']);
5751 * Remove one or more occurrences of $char (single character) from $txt and adjust OTLdata
5753 public function removeChar(&$txt, &$cOTLdata, $char)
5755 while (mb_strpos($txt, $char, 0, $this->mpdf->mb_enc) !== false) {
5756 $pos = mb_strpos($txt, $char, 0, $this->mpdf->mb_enc);
5773 $txt = preg_replace("/" . $char . "/", '', $txt, 1);
5778 * Remove one or more occurrences of $char (single character) from $txt and adjust OTLdata
5782 $char = chr(194) . chr(160); // NBSP
5783 while (mb_strpos($txt, $char, 0, $this->mpdf->mb_enc) !== false) {
5784 $pos = mb_strpos($txt, $char, 0, $this->mpdf->mb_enc);
5788 $txt = preg_replace("/" . $char . "/", ' ', $txt, 1);