Show Contents Previous Page Next Page Chapter 11 - C API Reference Guide, Part II / String and URI Manipulation Apache provides a set of wrappers around the standard character class macros found in the ctype.h header file. The reason for these wrappers is to provide correct behavior on systems that support 8-bit characters. Unfortunately, not all C libraries are fully internationalized. Even if you don't care about 8-bit support, it is a good idea to use the ap_ character class macros instead of the standard equivalents because they guarantee compatibility should locale support be added to Apache in the future. These functions can be found in header file ap_ctype.h: int ap_isalnum (int character)
int ap_isalpha (int character)
int ap_iscntrl (int character)
int ap_isdigit (int character)
int ap_isgraph (int character)
int ap_islower (int character)
int ap_isprint (int character) Returns true if character is printable. int ap_ispunct (int character)
int ap_isspace (int character)
int ap_isupper (int character)
int ap_tolower (int character)
int ap_toupper (int character) Show Contents Previous Page Next Page Copyright © 1999 by O'Reilly & Associates, Inc. |