version 2.8, 1995/11/05 20:12:59
|
version 2.9, 1995/11/13 00:13:53
|
Line 90 PUBLIC char * HTEscape (CONST char * str
|
Line 90 PUBLIC char * HTEscape (CONST char * str
|
** The string is converted in place, as it will never grow. |
** The string is converted in place, as it will never grow. |
*/ |
*/ |
|
|
PRIVATE char from_hex ARGS1(char, c) |
PRIVATE char from_hex (char c) |
{ |
{ |
return c >= '0' && c <= '9' ? c - '0' |
return c >= '0' && c <= '9' ? c - '0' |
: c >= 'A' && c <= 'F'? c - 'A' + 10 |
: c >= 'A' && c <= 'F'? c - 'A' + 10 |
: c - 'a' + 10; /* accept small letters just in case */ |
: c - 'a' + 10; /* accept small letters just in case */ |
} |
} |
|
|
PUBLIC char * HTUnEscape ARGS1( char *, str) |
PUBLIC char * HTUnEscape (char * str) |
{ |
{ |
char * p = str; |
char * p = str; |
char * q = str; |
char * q = str; |