Lines Matching refs:text
39 * @param string $text
43 public function fromUtf8(string $text): string argument
46 $len = strlen($text);
49 $code_point = ord($text[$n]);
57 $byte2 = ord($text[++$n]);
66 $byte2 = ord($text[++$n]);
67 $byte3 = ord($text[++$n]);
87 * @param string $text
91 public function toUtf8(string $text): string argument
95 foreach (str_split($text, 2) as $character) {
125 * @param string $text
129 public function convertibleBytes(string $text): int argument
131 return 2 * intdiv(strlen($text), 2);