www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - General unicode category

reply Tomek =?ISO-8859-2?Q?Sowi=F1ski?= <just ask.me> writes:
How can I get the general unicode category (Lu, Nd, Pc, etc.) of a dchar?
std.uni contains barely anything useful.

-- 
Tomek
Jan 29 2011
parent reply spir <denis.spir gmail.com> writes:
On 01/29/2011 09:26 PM, Tomek Sowiński wrote:
 How can I get the general unicode category (Lu, Nd, Pc, etc.) of a dchar?
std.uni contains barely anything useful.
DUnicode has such functionality: https://bitbucket.org/stephan/dunicode/src Watch inside unicodedata.d, search for "general category". Denis -- _________________ vita es estrany spir.wikidot.com
Jan 30 2011
parent reply Tomek =?UTF-8?B?U293acWEc2tp?= <just ask.me> writes:
spir spir napisa=C5=82:

 DUnicode has such functionality: https://bitbucket.org/stephan/dunicode/s=
rc
 Watch inside unicodedata.d, search for "general category".
Thanks. Any word of moving some of it into Phobos? It's jarring to see a Un= icode-compliant language have so few tools to work with the standard. --=20 Tomek
Jan 30 2011
parent spir <denis.spir gmail.com> writes:
On 01/30/2011 02:49 PM, Tomek Sowiński wrote:
 spir spir napisał:

 DUnicode has such functionality: https://bitbucket.org/stephan/dunicode/src
 Watch inside unicodedata.d, search for "general category".
Thanks. Any word of moving some of it into Phobos? It's jarring to see a Unicode-compliant language have so few tools to work with the standard.
Not foreseen AFAIK. Denis -- _________________ vita es estrany spir.wikidot.com
Jan 31 2011