Lines Matching +full:check +full:- +full:pass -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

6  * Convert between UTF-8 and a list of Unicode Code Points
11 * Takes an UTF-8 string and returns an array of ints representing the
17 * string isn't a valid UTF-8 octet sequence and raises a PHP error at
26 * @link http://hsivonen.iki.fi/php-utf8/
31 * @param string $str UTF-8 encoded string
32 * @param boolean $strict Check for invalid sequences?
33 * @return mixed array of unicode code points or false if UTF-8 invalid
50 // When mState is zero we expect either a US-ASCII character or a
51 // multi-octet sequence.
53 // US-ASCII, pass straight through.
79 * (b) outside the Unicode range of 0-0x10FFFF.
94 /* Current octet is neither in the US-ASCII range nor a legal first
95 * octet of a multi-octet sequence.
99 'in UTF-8 at byte ' . $i,
105 // When mState is non-zero, we expect a continuation of the multi-octet
108 $shift = ($mState - 1) * 6;
113 * End of the multi-octet sequence. mUcs4 now contains the final
116 if (0 === --$mState) {
118 * Check for illegal sequences and codepoints.
120 // From Unicode 3.1, non-shortest form is illegal
134 'in UTF-8 at byte ' . $i,
155 * Incomplete multi-octet sequence.
158 'utf8_to_unicode: Incomplete multi-octet ' .
159 ' sequence in UTF-8 at byte ' . $i,
171 * a UTF-8 string. Astral planes are supported ie. the ints in the
180 * output buffering to concatenate the UTF-8 string (faster) as well as
184 * @param boolean $strict Check for invalid sequences?
185 * @return string|false UTF-8 string or false if array contains invalid code points
190 * @link http://hsivonen.iki.fi/php-utf8/
209 // nop -- zap the BOM