Lines Matching refs:char
781 * @param string $char Character.
784 public static function getCharDirection($char) argument
786 $c = static::toCode($char);
882 * @param string $char Character.
885 public static function getCharWidth($char) argument
887 $char = (string) $char;
888 $c = static::toCode($char);
901 0 !== preg_match('#^[\p{Mn}\p{Me}\p{Cf}\x{1160}-\x{11ff}\x{200b}]#u', $char)) {
925 * @param string $char Character.
928 public static function isCharPrintable($char) argument
930 return 1 <= static::getCharWidth($char);
951 * @param string $char Character.
954 public static function toCode($char) argument
956 $char = (string) $char;
957 $code = ord($char[0]);
976 $code = ($code << 6) + (ord($char[$i - 1]) & ~0x80);
985 * @param string $char Character.
988 public static function toBinaryCode($char) argument
990 $char = (string) $char;
993 for ($i = 0, $max = strlen($char); $i < $max; ++$i) {
994 $out .= vsprintf('%08b', ord($char[$i]));