Lines Matching refs:chars

2437 				// Get types of new inserted chars - or replicate type of char being replaced
2617 // Get types of new inserted chars - or replicate type of char being replaced
2840 $chars = [];
2842 $chars[] = $this->OTLdata[$i]['hex'];
2849 $max = count($chars);
2851 $crntChar = $chars[$i];
2853 $prevChar = hexdec($chars[$i - 1]);
2857 if ($prevChar && isset($this->arabTransparentJoin[$prevChar]) && isset($chars[$i - 2])) {
2858 $prevChar = hexdec($chars[$i - 2]);
2859 if ($prevChar && isset($this->arabTransparentJoin[$prevChar]) && isset($chars[$i - 3])) {
2860 $prevChar = hexdec($chars[$i - 3]);
2861 if ($prevChar && isset($this->arabTransparentJoin[$prevChar]) && isset($chars[$i - 4])) {
2862 $prevChar = hexdec($chars[$i - 4]);
2868 if (isset($chars[$i + 1]) && $chars[$i + 1] && isset($this->arabRightJoining[hexdec($chars[$i + 1])]) && $prevChar && isset($this->arabLeftJoining[$prevChar])) {
2869 $output[] = $this->get_arab_glyphs($crntChar, 1, $chars, $i, $scriptTag, $usetags); // <final> form
2871 $output[] = $this->get_arab_glyphs($crntChar, 0, $chars, $i, $scriptTag, $usetags); // <isolated> form
2888 $output[] = $this->get_arab_glyphs($crntChar, $form, $chars, $i, $scriptTag, $usetags);
2899 private function get_arab_glyphs($char, $type, &$chars, $i, $scriptTag, $usetags)
2915 if (isset($chars[$n]) && isset($this->arabLeftJoining[hexdec($chars[$n])])) {
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])) {
2920 elseif (!isset($chars[$i + 1]) || !preg_match('/[\x{0700}-\x{0745}]/u', UtfString::code2utf(hexdec($chars[$i + 1])))) {
2922 if (strpos('0715|0716|072A', $chars[$n]) !== false && isset($this->arabGlyphs[$char][6])) {
2950 if (!isset($chars[$i - $ig - $k])) {
2952 } elseif (strpos($v, $chars[$i - $ig - $k]) === false) {
2953 while (strpos($this->arabGlyphs[$char]['ignore'][$retk], $chars[$i - $ig - $k]) !== false) { // ignore
2956 if (!isset($chars[$i - $ig - $k])) {
2958 } elseif (strpos($v, $chars[$i - $ig - $k]) === false) {
2967 if (!isset($chars[$i + $ig + $k])) {
2969 } elseif (strpos($v, $chars[$i + $ig + $k]) === false) {
2970 while (strpos($this->arabGlyphs[$char]['ignore'][$retk], $chars[$i + $ig + $k]) !== false) { // ignore
2973 if (!isset($chars[$i + $ig + $k])) {
2975 } elseif (strpos($v, $chars[$i + $ig + $k]) === false) {