Should I Use std.ascii.isWhite or std.uni.isWhite?
anonymous
anonymous at example.com
Thu Jul 25 23:27:55 PDT 2013
On Friday, 26 July 2013 at 05:54:50 UTC, Meta wrote:
> Another question, I'm not all that familiar with unicode, so
> what is the difference between std.uni.isNumber and
> std.ascii.isNumber? Am I right in thinking that
> std.uni.isNumber will match things outside of the basic 0..9?
Starting at <http://dlang.org/phobos/std_uni#.isNumber>:
> general Unicode category: Nd, Nl, No
Via
<http://www.google.com/search?q=general+Unicode+category:+Nd,+Nl,+No>
to
<http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#General_Category>:
> Number (N)
> Decimal digit (Nd)
> Letter (Nl) — Numerals composed of letters or letterlike
> symbols (e.g., Roman numerals)
> Other (No) — Includes vulgar fractions and superscript and
> subscript digits.
More information about the Digitalmars-d-learn
mailing list