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
10 /** Get Unicode properties for a character. See
\r
11 <a href="http://unicode.org">http://unicode.org</a>. */
\r
14 /** Is this a "Decimal Digit" according to Unicode? */
\r
15 public final static boolean isDecimalDigit(char c)
\r
17 if (Bits.decimal_digit == null)
\r
19 Bits.decimal_digit_f();
\r
21 return Bits.decimal_digit.get(c);
\r
24 /** Is this a "Alphabetic" according to Unicode? */
\r
25 public final static boolean isAlphabetic(char c)
\r
27 if (Bits.letter == null)
\r
31 return Bits.letter.get(c);
\r
34 /** Is this a "Math" according to Unicode? */
\r
35 public final static boolean isMath(char c)
\r
37 if (Bits.math == null)
\r
41 return Bits.math.get(c);
\r
44 /** Is this a "Currency" according to Unicode? */
\r
45 public final static boolean isCurrency(char c)
\r
47 if (Bits.currency == null)
\r
51 return Bits.currency.get(c);
\r
54 /** Is c a white space character according to Unicode? */
\r
55 public final static boolean isWhite(char c)
\r
57 if (Bits.white == null)
\r
61 return Bits.white.get(c);
\r
64 /** Is c a punctuation character according to Unicode? */
\r
65 public final static boolean isPunct(char c)
\r
67 if (Bits.punct == null)
\r
71 return Bits.punct.get(c);
\r