malenkiki / bah

Simple basic PHP classes to play with String, Character, Hash, Collection, Number… A little toolbox!
http://malenkiki.github.io/bah/
MIT License
2 stars 0 forks source link

More support of PCRE / UTF-8 #26

Open malenkiki opened 10 years ago

malenkiki commented 10 years ago

See http://www.regular-expressions.info/unicode.html

malenkiki commented 10 years ago

So, read file at http://www.unicode.org/Public/6.0.0/ucd/UnicodeData.txt and find characters with bidirectional property "R" or "AL" to have RTL chars.

See response into http://stackoverflow.com/questions/4330951/how-to-detect-whether-a-character-belongs-to-a-right-to-left-language