Changeset 2302
- Timestamp:
- Sep 21, 2008 9:11:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/ctype.h
r2039 r2302 45 45 * @return Non-zero value if either isalpha or isdigit is true for c. 46 46 */ 47 PJ_INLINE(int) pj_isalnum( intc) { return isalnum(c); }47 PJ_INLINE(int) pj_isalnum(unsigned char c) { return isalnum(c); } 48 48 49 49 /** … … 54 54 * alphabetic character. 55 55 */ 56 PJ_INLINE(int) pj_isalpha( intc) { return isalpha(c); }56 PJ_INLINE(int) pj_isalpha(unsigned char c) { return isalpha(c); } 57 57 58 58 /** … … 63 63 * an ASCII character. 64 64 */ 65 PJ_INLINE(int) pj_isascii( intc) { return c<128 && c>=0; }65 PJ_INLINE(int) pj_isascii(unsigned char c) { return c<128 && c>=0; } 66 66 67 67 /** … … 72 72 * a decimal-digit character. 73 73 */ 74 PJ_INLINE(int) pj_isdigit( intc) { return isdigit(c); }74 PJ_INLINE(int) pj_isdigit(unsigned char c) { return isdigit(c); } 75 75 76 76 /** … … 81 81 * a space character (0x09 - 0x0D or 0x20). 82 82 */ 83 PJ_INLINE(int) pj_isspace( intc) { return isspace(c); }83 PJ_INLINE(int) pj_isspace(unsigned char c) { return isspace(c); } 84 84 85 85 /** … … 90 90 * a lowercase character. 91 91 */ 92 PJ_INLINE(int) pj_islower( intc) { return islower(c); }92 PJ_INLINE(int) pj_islower(unsigned char c) { return islower(c); } 93 93 94 94 … … 100 100 * a uppercase character. 101 101 */ 102 PJ_INLINE(int) pj_isupper( intc) { return isupper(c); }102 PJ_INLINE(int) pj_isupper(unsigned char c) { return isupper(c); } 103 103 104 104 /** … … 109 109 * tab ('\\t') character. 110 110 */ 111 PJ_INLINE(int) pj_isblank( intc) { return isblank(c); }111 PJ_INLINE(int) pj_isblank(unsigned char c) { return isblank(c); } 112 112 113 113 /** … … 116 116 * @return Lowercase character of c. 117 117 */ 118 PJ_INLINE(int) pj_tolower( intc) { return tolower(c); }118 PJ_INLINE(int) pj_tolower(unsigned char c) { return tolower(c); } 119 119 120 120 /** … … 123 123 * @return Uppercase character of c. 124 124 */ 125 PJ_INLINE(int) pj_toupper( intc) { return toupper(c); }125 PJ_INLINE(int) pj_toupper(unsigned char c) { return toupper(c); } 126 126 127 127 /** … … 132 132 * an hexadecimal digit character. 133 133 */ 134 PJ_INLINE(int) pj_isxdigit( intc){ return isxdigit(c); }134 PJ_INLINE(int) pj_isxdigit(unsigned char c){ return isxdigit(c); } 135 135 136 136 /** … … 157 157 * @return The integral value between 0 and 15. 158 158 */ 159 PJ_INLINE(unsigned) pj_hex_digit_to_val(unsigned c )159 PJ_INLINE(unsigned) pj_hex_digit_to_val(unsigned char c) 160 160 { 161 161 if (c <= '9')
Note: See TracChangeset
for help on using the changeset viewer.