54 extern FXAPI
const FXushort ascii_data[256];
57 extern FXAPI
const FXchar value_to_digit[256];
60 extern FXAPI
const FXschar digit_to_value[256];
64 static inline FXint digitValue(FXchar asc){
65 return digit_to_value[(FXuchar)asc];
70 static inline FXint valueDigit(FXuchar asc){
71 return value_to_digit[(FXuchar)asc];
76 static inline FXushort charProperties(FXchar asc){
77 return ascii_data[(FXuchar)asc];
82 static inline FXbool hasCase(FXchar asc){
83 return (charProperties(asc)&Case)!=0;
88 static inline FXbool isUpper(FXchar asc){
89 return (charProperties(asc)&Upper)!=0;
94 static inline FXbool isLower(FXchar asc){
95 return (charProperties(asc)&Lower)!=0;
100 static inline FXbool isTitle(FXchar asc){
101 return (charProperties(asc)&Upper)!=0;
106 static inline FXbool isAscii(FXchar asc){
107 return ((FXuchar)asc)<128;
112 static inline FXbool isLetter(FXchar asc){
113 return (charProperties(asc)&Letter)!=0;
118 static inline FXbool isDigit(FXchar asc){
119 return (charProperties(asc)&Digit)!=0;
124 static inline FXbool isAlphaNumeric(FXchar asc){
125 return (charProperties(asc)&AlphaNum)!=0;
130 static inline FXbool isControl(FXchar asc){
131 return (charProperties(asc)&Control)!=0;
136 static inline FXbool isSpace(FXchar asc){
137 return (charProperties(asc)&Space)!=0;
142 static inline FXbool isBlank(FXchar asc){
143 return (charProperties(asc)&Blank)!=0;
148 static inline FXbool isPunct(FXchar asc){
149 return (charProperties(asc)&Punct)!=0;
154 static inline FXbool isGraph(FXchar asc){
155 return (charProperties(asc)&Graph)!=0;
160 static inline FXbool isPrint(FXchar asc){
161 return (charProperties(asc)&Print)!=0;
166 static inline FXbool isHexDigit(FXchar asc){
167 return (charProperties(asc)&HexDigit)!=0;
172 static inline FXbool isOctDigit(FXchar asc){
173 return (asc&0xF8)==0x30;
178 static inline FXbool isBinDigit(FXchar asc){
179 return (asc&0xFE)==0x30;
184 static inline FXbool isWord(FXchar asc){
185 return (charProperties(asc)&Word)!=0;
190 static inline FXbool isDelim(FXchar asc){
191 return (charProperties(asc)&Delim)!=0;
196 static inline FXchar toUpper(FXchar asc){
197 return (FXchar)(asc+((((96-(FXint)asc)&((FXint)asc-123))>>31)&-32));
202 static inline FXchar toLower(FXchar asc){
203 return (FXchar)(asc+((((64-(FXint)asc)&((FXint)asc-91))>>31)&32));
208 static inline FXchar toTitle(FXchar asc){
209 return (FXchar)(asc+((((96-(FXint)asc)&((FXint)asc-123))>>31)&-32));
Definition: FX4Splitter.h:28