2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
11 * Get Unicode properties for a character. See <a
\r
12 * href="http://unicode.org">http://unicode.org</a>.
\r
16 /** Is this a "Decimal Digit" according to Unicode? */
\r
17 public final static boolean isDecimalDigit(char c)
\r
19 if (Bits.decimal_digit == null)
\r
21 Bits.decimal_digit_f();
\r
23 return Bits.decimal_digit.get(c);
\r
26 /** Is this a "Alphabetic" according to Unicode? */
\r
27 public final static boolean isAlphabetic(char c)
\r
29 if (Bits.letter == null)
\r
33 return Bits.letter.get(c);
\r
36 /** Is this a "Math" according to Unicode? */
\r
37 public final static boolean isMath(char c)
\r
39 if (Bits.math == null)
\r
43 return Bits.math.get(c);
\r
46 /** Is this a "Currency" according to Unicode? */
\r
47 public final static boolean isCurrency(char c)
\r
49 if (Bits.currency == null)
\r
53 return Bits.currency.get(c);
\r
56 /** Is c a white space character according to Unicode? */
\r
57 public final static boolean isWhite(char c)
\r
59 if (Bits.white == null)
\r
63 return Bits.white.get(c);
\r
66 /** Is c a punctuation character according to Unicode? */
\r
67 public final static boolean isPunct(char c)
\r
69 if (Bits.punct == null)
\r
73 return Bits.punct.get(c);
\r