package com.stevesoft.pat;\r
\r
/** Get Unicode properties for a character. See\r
-<a href="http://unicode.org">http://unicode.org</a>. */\r
-public class Prop {\r
- /** Is this a "Decimal Digit" according to Unicode? */\r
- public final static boolean isDecimalDigit(char c) {\r
- if(Bits.decimal_digit == null)\r
- Bits.decimal_digit_f();\r
- return Bits.decimal_digit.get(c);\r
+ <a href="http://unicode.org">http://unicode.org</a>. */\r
+public class Prop\r
+{\r
+ /** Is this a "Decimal Digit" according to Unicode? */\r
+ public final static boolean isDecimalDigit(char c)\r
+ {\r
+ if (Bits.decimal_digit == null)\r
+ {\r
+ Bits.decimal_digit_f();\r
}\r
- /** Is this a "Alphabetic" according to Unicode? */\r
- public final static boolean isAlphabetic(char c) {\r
- if(Bits.letter == null)\r
- Bits.letter_f();\r
- return Bits.letter.get(c);\r
+ return Bits.decimal_digit.get(c);\r
+ }\r
+\r
+ /** Is this a "Alphabetic" according to Unicode? */\r
+ public final static boolean isAlphabetic(char c)\r
+ {\r
+ if (Bits.letter == null)\r
+ {\r
+ Bits.letter_f();\r
}\r
- /** Is this a "Math" according to Unicode? */\r
- public final static boolean isMath(char c) {\r
- if(Bits.math == null)\r
- Bits.math_f();\r
- return Bits.math.get(c);\r
+ return Bits.letter.get(c);\r
+ }\r
+\r
+ /** Is this a "Math" according to Unicode? */\r
+ public final static boolean isMath(char c)\r
+ {\r
+ if (Bits.math == null)\r
+ {\r
+ Bits.math_f();\r
}\r
+ return Bits.math.get(c);\r
+ }\r
\r
- /** Is this a "Currency" according to Unicode? */\r
- public final static boolean isCurrency(char c) {\r
- if(Bits.currency == null)\r
- Bits.currency_f();\r
- return Bits.currency.get(c);\r
+ /** Is this a "Currency" according to Unicode? */\r
+ public final static boolean isCurrency(char c)\r
+ {\r
+ if (Bits.currency == null)\r
+ {\r
+ Bits.currency_f();\r
}\r
+ return Bits.currency.get(c);\r
+ }\r
\r
- /** Is c a white space character according to Unicode? */\r
- public final static boolean isWhite(char c) {\r
- if(Bits.white == null)\r
- Bits.white_f();\r
- return Bits.white.get(c);\r
+ /** Is c a white space character according to Unicode? */\r
+ public final static boolean isWhite(char c)\r
+ {\r
+ if (Bits.white == null)\r
+ {\r
+ Bits.white_f();\r
}\r
+ return Bits.white.get(c);\r
+ }\r
\r
- /** Is c a punctuation character according to Unicode? */\r
- public final static boolean isPunct(char c) {\r
- if(Bits.punct == null)\r
- Bits.punct_f();\r
- return Bits.punct.get(c);\r
+ /** Is c a punctuation character according to Unicode? */\r
+ public final static boolean isPunct(char c)\r
+ {\r
+ if (Bits.punct == null)\r
+ {\r
+ Bits.punct_f();\r
}\r
+ return Bits.punct.get(c);\r
+ }\r
}\r