Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 3 of 3) sorted by relevance

/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/
H A DEntities.php151 if ($codepoint = $this->consume_range($range)) {
158 $codepoint = (int) min(hexdec($codepoint), \PHP_INT_MAX);
161 $codepoint = (int) $codepoint;
164 if (isset($windows_1252_specials[$codepoint])) {
165 $replacement = $windows_1252_specials[$codepoint];
167 $replacement = SimplePie_Misc::codepoint_to_utf8($codepoint);
/dokuwiki/inc/
H A DSafeFN.class.php108 foreach ($unicode as $codepoint) {
109 … if ($codepoint < 127 && (str_contains(self::$plain . self::$post_indicator, chr($codepoint)))) {
114 $safe .= chr($codepoint);
115 } elseif ($codepoint == ord(self::$pre_indicator)) {
119 $safe .= self::$pre_indicator . base_convert((string)($codepoint - 32), 10, 36);
/dokuwiki/vendor/simplepie/simplepie/src/
H A DMisc.php1946 * @param int $codepoint Unicode codepoint
1949 public static function codepoint_to_utf8(int $codepoint) argument
1951 if ($codepoint < 0) {
1953 } elseif ($codepoint <= 0x7f) {
1954 return chr($codepoint);
1955 } elseif ($codepoint <= 0x7ff) {
1956 return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
1957 } elseif ($codepoint <= 0xffff) {
1958 …return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($code…
1959 } elseif ($codepoint <= 0x10ffff) {
[all …]