|
MediaWiki master
|
TextDirection. More...
Public Member Functions | |
| getDirection (string $text) | |
| Determines the first strong directional Unicode codepoint. | |
TextDirection.
Determines whether text is primarily left-to-right or right-to-left.
Definition at line 20 of file TextDirection.php.
| Wikimedia\Leximorph\Provider\TextDirection::getDirection | ( | string | $text | ) |
Determines the first strong directional Unicode codepoint.
Iterates over Unicode characters using IntlChar. Skips BIDI control and unallocated characters (using {
| string | $text | Text to test. |
Definition at line 63 of file TextDirection.php.