BidiClass

Strong, weak and neutral bidirectional character classes. The backing value of each case is the class abbreviation used as key of Type::STRONG, Type::WEAK and Type::NEUTRAL. The explicit formatting codes (LRE, LRO, RLE, RLO, PDF, LRI, RLI, FSI, PDI) are not part of this set.

Namespace: Com\Tecnick\Unicode\Data

Backing type: string

File: BidiClass.php line 37

Strong, weak and neutral bidirectional character classes. The backing value of each case is the class abbreviation used as key of Type::STRONG, Type::WEAK and Type::NEUTRAL. The explicit formatting codes (LRE, LRO, RLE, RLO, PDF, LRI, RLI, FSI, PDI) are not part of this set.

Tags

Cases

L

File: BidiClass.php line 40

R

File: BidiClass.php line 42

AL

File: BidiClass.php line 44

EN

File: BidiClass.php line 47

ES

File: BidiClass.php line 49

ET

File: BidiClass.php line 51

AN

File: BidiClass.php line 53

CS

File: BidiClass.php line 55

NSM

File: BidiClass.php line 57

BN

File: BidiClass.php line 59

B

File: BidiClass.php line 62

S

File: BidiClass.php line 64

WS

File: BidiClass.php line 66

ON

File: BidiClass.php line 68

Methods

fromLoose()

File: BidiClass.php line 77

public static fromLoose(string|self $value) : self

An enum case is returned unchanged. Unknown values throw a \ValueError.

Parameters

  • $value : string|self: Bidirectional class abbreviation or enum case.

Return values

self

isNeutral()

File: BidiClass.php line 105

public isNeutral() : bool

Return values

bool

isStrong()

File: BidiClass.php line 89

public isStrong() : bool

Return values

bool

isWeak()

File: BidiClass.php line 97

public isWeak() : bool

Return values

bool