Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

ctype functions


Defines

#define apr_isalnum(c)   (isalnum(((unsigned char)(c))))
#define apr_isalpha(c)   (isalpha(((unsigned char)(c))))
#define apr_iscntrl(c)   (iscntrl(((unsigned char)(c))))
#define apr_isdigit(c)   (isdigit(((unsigned char)(c))))
#define apr_isgraph(c)   (isgraph(((unsigned char)(c))))
#define apr_islower(c)   (islower(((unsigned char)(c))))
#define apr_isascii(c)   (((c) & ~0x7f)==0)
#define apr_isprint(c)   (isprint(((unsigned char)(c))))
#define apr_ispunct(c)   (ispunct(((unsigned char)(c))))
#define apr_isspace(c)   (isspace(((unsigned char)(c))))
#define apr_isupper(c)   (isupper(((unsigned char)(c))))
#define apr_isxdigit(c)   (isxdigit(((unsigned char)(c))))
#define apr_tolower(c)   (tolower(((unsigned char)(c))))
#define apr_toupper(c)   (toupper(((unsigned char)(c))))

Detailed Description

These macros allow correct support of 8-bit characters on systems which support 8-bit characters. Pretty dumb how the cast is required, but that's legacy libc for ya. These new macros do not support EOF like the standard macros do. Tough.

Define Documentation

#define apr_isalnum c   )     (isalnum(((unsigned char)(c))))
 

See also:
isalnum

Definition at line 190 of file apr_lib.h.

Referenced by AP_DECLARE(), ap_ssi_parse_string(), ascmagic(), http2env(), main(), PROXY_DECLARE(), and set_and_comp_regexp().

#define apr_isalpha c   )     (isalpha(((unsigned char)(c))))
 

See also:
isalpha

Definition at line 192 of file apr_lib.h.

Referenced by ap_proxy_ftp_handler(), conv_fp(), imap_url(), register_filter(), and test_safe_name().

#define apr_isascii c   )     (((c) & ~0x7f)==0)
 

See also:
isascii

Definition at line 205 of file apr_lib.h.

Referenced by is_qtext(), is_quoted_pair(), and is_token().

#define apr_iscntrl c   )     (iscntrl(((unsigned char)(c))))
 

See also:
iscntrl

Definition at line 194 of file apr_lib.h.

Referenced by main().

#define apr_isdigit c   )     (isdigit(((unsigned char)(c))))
 

See also:
isdigit

Definition at line 196 of file apr_lib.h.

Referenced by add_redirect_internal(), AP_DECLARE(), ap_proxy_ftp_handler(), ap_proxy_send_dir_filter(), APR_DECLARE(), apr_get_oslevel(), APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(), APU_DECLARE(), CACHE_DECLARE(), check_code(), cmd_rewriterule_setflag(), compare_left(), compare_right(), decodehtml(), do_expand(), ftp_getrc_msg(), get_include_var(), get_x_coord(), get_y_coord(), hextoint(), imap_handler_internal(), looks_like_ip(), main(), parse(), parse_log_item(), parse_negotiate_header(), parse_network(), process_mkcol_body(), read_request_line(), revision_suffix(), send_response_header(), set_allowed_ports(), set_cookie_exp(), strnatcmp0(), and vhost_alias_set().

#define apr_isgraph c   )     (isgraph(((unsigned char)(c))))
 

See also:
isgraph

Definition at line 198 of file apr_lib.h.

Referenced by is_token().

#define apr_islower c   )     (islower(((unsigned char)(c))))
 

See also:
islower

Definition at line 200 of file apr_lib.h.

Referenced by APR_DECLARE(), APU_DECLARE(), filepath_root_case(), and fix_hostname().

#define apr_isprint c   )     (isprint(((unsigned char)(c))))
 

See also:
isprint

Definition at line 208 of file apr_lib.h.

Referenced by AP_DECLARE(), apprentice(), magic_init(), main(), match(), and read_table().

#define apr_ispunct c   )     (ispunct(((unsigned char)(c))))
 

See also:
ispunct

Definition at line 210 of file apr_lib.h.

#define apr_isspace c   )     (isspace(((unsigned char)(c))))
 

See also:
isspace

Definition at line 212 of file apr_lib.h.

Referenced by analyze_ct(), AP_DECLARE(), ap_proxy_clear_connection(), ap_proxy_ftp_handler(), apprentice(), APR_DECLARE(), APU_DECLARE(), ascmagic(), CACHE_DECLARE(), cache_select_url(), check_nc(), DAV_DECLARE(), define_filter(), find_arg_or_tail(), find_argument(), find_directive(), from_oct(), get_digest_rec(), get_entry(), get_header_line(), get_ptoken(), getstr(), has_space(), imap_handler_internal(), lcase_header_name_return_body(), magic_rsl_to_request(), main(), original_uri(), parse(), process_mkcol_body(), PROXY_DECLARE(), read_quoted(), read_table(), read_type_map(), scan_meta_file(), send_response_header(), service_stderr_thread(), set_nonce_lifetime(), set_shmem_size(), strnatcmp0(), uniq_field_values(), and zap_sp_and_dup().

#define apr_isupper c   )     (isupper(((unsigned char)(c))))
 

See also:
isupper

Definition at line 214 of file apr_lib.h.

Referenced by apr_get_oslevel(), APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(), APU_DECLARE(), CACHE_DECLARE(), and fix_hostname().

#define apr_isxdigit c   )     (isxdigit(((unsigned char)(c))))
 

See also:
isxdigit

Definition at line 216 of file apr_lib.h.

Referenced by APU_DECLARE(), decodeenc(), ftp_check_string(), get_chunk_size(), and PROXY_DECLARE().

#define apr_tolower c   )     (tolower(((unsigned char)(c))))
 

See also:
tolower

Definition at line 218 of file apr_lib.h.

Referenced by ap_proxy_ftp_handler(), APR_DECLARE(), APU_DECLARE(), find_argument(), find_directive(), find_title(), fix_hostname(), get_entry(), lcase_header_name_return_body(), main(), match_boyer_moore_horspool_nocase(), rangematch(), rewrite_mapfunc_tolower(), spdist(), strcasecmp(), strncasecmp(), and vhost_alias_interpolate().

#define apr_toupper c   )     (toupper(((unsigned char)(c))))
 

See also:
toupper

Definition at line 220 of file apr_lib.h.

Referenced by ap_proxy_ftp_handler(), APR_DECLARE(), CaseFilterInFilter(), CaseFilterOutFilter(), filepath_drive_get(), filepath_root_case(), filepath_root_test(), http2env(), make_autoindex_entry(), make_parent_entry(), register_filter(), rewrite_mapfunc_toupper(), ssl_util_strupper(), and strnatcmp0().