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