Table of contents
Namespace: Com\Tecnick\Unicode\Data
class LineBreak
Source: src/LineBreak.php:38
Line_Break property values (UAX #14) of the classes that take part in ideographic line breaking.
Generated by tools/generate.php from the Unicode Character Database 17.0.0. Do not edit manually.
Constants
CLASSES
Line_Break classes returned by getClass().
public const CLASSES = ['ID', 'H2', 'H3', 'CJ', 'NS', 'OP', 'CL', 'CP', 'EX', 'IS', 'QU', 'IN', 'B2']
Source: src/LineBreak.php:50
HANGUL_FIRST
First Hangul syllable.
public const HANGUL_FIRST = 0xac00
Source: src/LineBreak.php:55
HANGUL_LAST
Last Hangul syllable.
public const HANGUL_LAST = 0xd7a3
Source: src/LineBreak.php:60
HANGUL_T_COUNT
Number of Hangul syllables sharing the same leading consonant and vowel.
public const HANGUL_T_COUNT = 28
Source: src/LineBreak.php:65
RANGES
Line_Break class of the code points outside the Hangul syllables, as [first code point, last code point, class], sorted by code point.
public const RANGES = [[0x21, 0x21, 'EX'], [0x22, 0x22, 'QU'], [0x27, 0x27, 'QU'], [0x28, 0x28, 'OP'], [0x29, 0x29, 'CP'], [0x2c, 0x2c, 'IS'], [0x2e, 0x2e, 'IS'], [0x3a, 0x3b, 'IS'], [0x3f, 0x3f, 'EX'], [0x5b, 0x5b, 'OP'], [0x5d, 0x5d, 'CP'], [0x7b, 0x7b, 'OP'], [0x7d, 0x7d, 'CL'], [0xa1, 0xa1, 'OP'], [0xab, 0xab, 'QU'], [0xbb, 0xbb, 'QU'], [0xbf, 0xbf, 'OP'], [0x37e, 0x37e, 'IS'], [0x589, 0x589, 'IS'], [0x5c6, 0x5c6,
// … truncated, see source
Source: src/LineBreak.php:73
UNICODE_VERSION
Version of the Unicode Character Database the table is derived from.
public const UNICODE_VERSION = '17.0.0'
Source: src/LineBreak.php:43
Methods
getClass()
Get the Line_Break class of a Unicode code point, or ’’ when it is not one of CLASSES.
public static getClass(int $ord): string
Parameters:
$ord(int): Unicode code point.
Returns: string
Source: src/LineBreak.php:548