Property | Type | Description | |
---|---|---|---|
$casefold | One of CASEFOLD_NONE, CASEFOLD_B2, CASEFOLD_B3. | ||
$checkbidi | If set, the mechanism for checking bidirectional strings described in RFC3454 is applied. | ||
$normalize | Whether to apply string normalization (NFKC) | ||
$prohibit | An array of tables from RFC3454 appendix C. | ||
$removeZWS | If set to true the characters from RFC3454 table B.1 are removed from the output. |
Method | Description | |
---|---|---|
apply ( $string, $encoding = 'UTF-8', $mode = self::MODE_STORE ) | Apply this profile to a given string. |
Method | Description | |
---|---|---|
applyMappingTable ( $codepoints, $func ) | Helper method: Apply a mapping table function to the given array of codepoints. | |
checkbidi ( $codepoints ) | Check for bidirectional text (RFC 3454 section 6) | |
map ( $codepoints ) | Apply mapping (RFC 3454 section 3) | |
normalize ( $codepoints ) | Normalize string (RFC 3454 section 4) | |
prohibit ( $codepoints ) | Check for prohibited output (RFC 3454 section 5) | |
validateCodepoint ( $codepoint, $index, $func ) | Helper method: Check if the given codepoint is prohibited by a table. |
public apply ( $string, $encoding = 'UTF-8', $mode = self::MODE_STORE ) |
protected static applyMappingTable ( $codepoints, $func ) |
protected checkbidi ( $codepoints ) |
protected normalize ( $codepoints ) |
protected prohibit ( $codepoints ) |
protected static validateCodepoint ( $codepoint, $index, $func ) |
protected $checkbidi |