\DeviceAtlas\DeviceDelimitersHandler

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.

Summary

Methods
Properties
Constants
__construct()
isDelimiter()
getAnyDelimiterChar()
getCountDelimiters()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
parseDelimiters()
$dC
N/A

Properties

$dC

$dC : 

Type

Methods

__construct()

__construct(  $codePointDelimiters) 

Parameters

$codePointDelimiters
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

isDelimiter()

isDelimiter(string  $character) : boolean

Determines if the passed character is a delimiter.

Parameters

string $character

The character to determine if it is a delimiter.

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

Returns

boolean

getAnyDelimiterChar()

getAnyDelimiterChar() : string

Return any delimiter char.

Throws

\Exception

Returns

string

getCountDelimiters()

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()

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.

Parameters

$codePointDelimiters
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