PHP 클래스 Znerol\Component\Stringprep\Profile

파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
apply ( $string, $encoding = 'UTF-8', $mode = self::MODE_STORE ) Apply this profile to a given string.

보호된 메소드들

메소드 설명
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.

메소드 상세

apply() 공개 메소드

Apply this profile to a given string.
public apply ( $string, $encoding = 'UTF-8', $mode = self::MODE_STORE )

applyMappingTable() 보호된 정적인 메소드

Helper method: Apply a mapping table function to the given array of codepoints.
protected static applyMappingTable ( $codepoints, $func )

checkbidi() 보호된 메소드

* If a string contains any RandALCat character (Table D.1), the string MUST NOT contain any LCat (Table D.2) character. * If a string contains any RandALCat character, a RandALCat character MUST be the first character of the string, and a RandALCat character MUST be the last character of the string.
protected checkbidi ( $codepoints )

map() 보호된 메소드

Apply mapping (RFC 3454 section 3)
protected map ( $codepoints )

normalize() 보호된 메소드

Normalize string (RFC 3454 section 4)
protected normalize ( $codepoints )

prohibit() 보호된 메소드

Check for prohibited output (RFC 3454 section 5)
protected prohibit ( $codepoints )

validateCodepoint() 보호된 정적인 메소드

Helper method: Check if the given codepoint is prohibited by a table.
protected static validateCodepoint ( $codepoint, $index, $func )

프로퍼티 상세

$casefold 보호되어 있는 프로퍼티

One of CASEFOLD_NONE, CASEFOLD_B2, CASEFOLD_B3.
protected $casefold

$checkbidi 보호되어 있는 프로퍼티

If set, the mechanism for checking bidirectional strings described in RFC3454 is applied.
protected $checkbidi

$normalize 보호되어 있는 프로퍼티

Whether to apply string normalization (NFKC)
protected $normalize

$prohibit 보호되어 있는 프로퍼티

An array of tables from RFC3454 appendix C.
protected $prohibit

$removeZWS 보호되어 있는 프로퍼티

If set to true the characters from RFC3454 table B.1 are removed from the output.
protected $removeZWS