$dC
$dC :
This class creates an array of key values representing all characters up to the maximum delimiter character's codepoint. It uses the codepoint value of a given character as a lookup into the boolean array. An entry that returns true from the array is a delimiter character.
In theory this will technically work (at a memory cost) with the full UTF-16 range of characters but in practice the delimiters are limited to the standard ASCII range.
__construct( $codePointDelimiters)
$codePointDelimiters |
isDelimiter(string $character) : boolean
Determines if the passed character is a delimiter.
string | $character | The character to determine if it is a delimiter. |
getCountDelimiters()
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
parseDelimiters( $codePointDelimiters)
Parse the delimiters chars and create a boolean array for all codepoints up to the last element of the List, as the List is order by codePoint.
All delimiters are marked as TRUE values. All other characters are marked as FALSE.
$codePointDelimiters |