Changeset 994
- Timestamp:
- Jan 18, 2004, 6:23:12 AM (22 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/ctype.h
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r993 r994 11 11 #define _CTYPE_H 12 12 13 #if defined (__cplusplus) 14 extern "C" { 15 #endif 13 #include <sys/cdefs.h> 14 #include <sys/locale.h> 16 15 17 #include <sys/locale.h> 16 __BEGIN_DECLS 18 17 19 18 static inline int isalnum (int _c) … … 56 55 { return __locale_ctype.locase [_c & 0xff]; } 57 56 58 #if !defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)59 57 60 #define isascii(c) (!((c) & 0x80)) 61 #define toascii(c) ((c) & 0x7f) 62 58 #if __XSI_VISIBLE 59 static inline int _toupper (int _c) 60 { return __locale_ctype.upcase [_c & 0xff]; } 61 static inline int _tolower (int _c) 62 { return __locale_ctype.locase [_c & 0xff]; } 63 static inline int isascii (int _c) 64 { return !(_c & 0x80); } 65 static inline int toascii (int _c) 66 { return (_c & 0x7f); } 63 67 #endif 64 68 65 #if defined (__cplusplus) 66 } 69 #if __BSD_VISIBLE 70 /* @todo int digittoint(int); */ 71 static inline int isblank (int _c) 72 { return __locale_ctype.cflags [_c & 0xff] & (__BLANK); } 73 /* @todo int ishexnumber(int); */ 74 /* @todo int isideogram(int); */ 75 /* @todo int isnumber(int); */ 76 /* @todo int isphonogram(int); */ 77 /* @todo int isrune(int); */ 78 /* @todo int isspecial(int); */ 67 79 #endif 68 80 81 __END_DECLS 82 69 83 #endif /* not _CTYPE_H */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/locale.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r993 r994 22 22 23 23 /* Bit masks for __locale_global.ctype */ 24 #define __UPPER 0x01 25 #define __LOWER 0x02 26 #define __DIGIT 0x04 27 #define __XDIGIT 0x08 28 #define __CNTRL 0x10 29 #define __SPACE 0x20 30 #define __PUNCT 0x40 31 #define __PRINT 0x80 24 #define __UPPER 0x0001 25 #define __LOWER 0x0002 26 #define __DIGIT 0x0004 27 #define __XDIGIT 0x0008 28 #define __CNTRL 0x0010 29 #define __SPACE 0x0020 30 #define __PUNCT 0x0040 31 #define __PRINT 0x0080 32 #define __BLANK 0x0100 32 33 33 34 #ifdef __INTERNAL_DEFS … … 88 89 { 89 90 /* Bit flags for every character (for isXXX() function series) */ 90 unsigned charcflags [256];91 unsigned short cflags [256]; 91 92 /* All uppercased characters */ 92 93 unsigned char upcase [256]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/locale/setlocale.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r993 r994 486 486 if (UniQueryPrint (locale_obj, ucs)) 487 487 ct |= __PRINT; 488 if (UniQueryBlank (locale_obj, ucs)) 489 ct |= __BLANK; 488 490 489 491 uc = Transform (locale_obj, uconv_obj, UniTransUpper, ucs, i); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.