Lines Matching refs:chrs
516 $chrs = substr($str, 1, -1);
518 $strlen_chrs = strlen($chrs);
522 $substr_chrs_c_2 = substr($chrs, $c, 2);
523 $ord_chrs_c = ord($chrs{$c});
553 $utf8 .= $chrs{++$c};
557 case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)):
559 $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2)))
560 . chr(hexdec(substr($chrs, ($c + 4), 2)));
566 $utf8 .= $chrs{$c};
572 $utf8 .= substr($chrs, $c, 2);
579 $utf8 .= substr($chrs, $c, 3);
586 $utf8 .= substr($chrs, $c, 4);
593 $utf8 .= substr($chrs, $c, 5);
600 $utf8 .= substr($chrs, $c, 6);
630 $chrs = substr($str, 1, -1);
631 $chrs = $this->reduce_string($chrs);
633 if ($chrs == '') {
645 $strlen_chrs = strlen($chrs);
650 $substr_chrs_c_2 = substr($chrs, $c, 2);
652 … if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) {
655 $slice = substr($chrs, $top['where'], ($c - $top['where']));
694 … } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
696 … array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c}));
699 } elseif (($chrs{$c} == $top['delim']) &&
701 … ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
708 } elseif (($chrs{$c} == '[') &&
714 } elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) {
719 } elseif (($chrs{$c} == '{') &&
725 } elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) {
743 $chrs = substr_replace($chrs, ' ', $i, 1);