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

String routines

Collaboration diagram for String routines:


Modules

 snprintf implementations

Functions

 APR_DECLARE (int) apr_strnatcmp(char const *a
 APR_DECLARE (char *) apr_pstrdup(apr_pool_t *p
 APR_DECLARE (void *) apr_pmemdup(apr_pool_t *p
 APR_DECLARE_NONSTD (char *) apr_pstrcat(apr_pool_t *p
const char __attribute__ ((format(printf, 2, 3)))
 APR_DECLARE (apr_status_t) apr_tokenize_to_argv(const char *arg_str
 APR_DECLARE (apr_int64_t) apr_strtoi64(const char *buf

Variables

char const * b
const char * s
const char apr_size_t n
const void * m
const struct iovec * vec
const struct iovec apr_size_t nvec
const struct iovec apr_size_t
apr_size_t * 
nbytes
const char * fmt
const char va_list ap
const char * src
const char apr_size_t dst_size
char *** argv_out
char apr_pool_ttoken_context
const char * sep
const char char ** last
char ** end
char int base
char * buf
apr_bucket_brigadeb
int int apr_status_t const
server_rec
s
int n
int int apr_status_t const
server_rec const char * 
fmt
ap_method_list_tsrc

Function Documentation

const char __attribute__ (format(printf, 2, 3))   ) 
 

APR_DECLARE apr_int64_t   )  const
 

parse a numeric string into a 64-bit numeric value

Parameters:
buf The string to parse. It may contain optional whitespace, followed by an optional '+' (positive, default) or '-' (negative) character, followed by an optional '0x' prefix if base is 0 or 16, followed by numeric digits appropriate for base.
end A pointer to the end of the valid character in buf. If not nil, it is set to the first invalid character in buf.
base A numeric base in the range between 2 and 36 inclusive, or 0. If base is zero, buf will be treated as base ten unless its digits are prefixed with '0x', in which case it will be treated as base 16.
Returns:
The numeric value of the string.

Definition at line 346 of file apr_strings.c.

References NULL.

APR_DECLARE apr_status_t   )  const
 

Convert the arguments to a program from one string to an array of strings terminated by a NULL pointer

Parameters:
arg_str The arguments to convert
argv_out Output location. This is a pointer to an array of strings.
token_context Pool to use.

APR_DECLARE void *   ) 
 

Duplicate a block of memory.

Parameters:
p The pool to allocate from
m The memory to duplicate
n The number of bytes to duplicate
Returns:
The new block of memory

Definition at line 665 of file apr_pools.c.

APR_DECLARE char *   ) 
 

duplicate a string into memory allocated out of a pool

Parameters:
p The pool to allocate out of
s The string to duplicate
Returns:
The new string

APR_DECLARE int   )  const
 

Do a natural order comparison of two strings.

Parameters:
a The first string to compare
b The second string to compare
Returns:
Either <0, 0, or >0. If the first string is less than the second this returns <0, if they are equivalent it returns 0, and if the first string is greater than second string it retuns >0.

Definition at line 950 of file unix/sockaddr.c.

APR_DECLARE_NONSTD char *   ) 
 

Concatenate multiple strings, allocating memory out a pool

Parameters:
p The pool to allocate out of
... The strings to concatenate. The final string must be NULL
Returns:
The new string


Variable Documentation

apr_size_t const char va_list ap
 

Definition at line 267 of file apr_strings.h.

char*** argv_out
 

Definition at line 209 of file apr_strings.h.

apr_bucket ** b
 

Definition at line 1236 of file apr_buckets.h.

Referenced by addBinding(), ap_buffered_log_writer_init(), AP_DECLARE(), AP_DECLARE_NONSTD(), ap_set_listenbacklog(), APR_HOOK_STRUCT(), APU_DECLARE(), asis_handler(), brigade_consume(), cgid_handler(), crude_order(), dav_finish_multistatus(), dav_method_put(), deflate_out_filter(), destroyBindings(), doContent(), drain_available_output(), dumpio_input_filter(), dumpio_output_filter(), ef_output_filter(), end_output_stream(), file_bucket_read(), hash(), include_cmd(), isapi_handler(), logio_out_filter(), match_headers(), mcheck(), MD4Transform(), MD5Transform(), mmap_handler(), process_echo_connection(), randbyte_sysinfo(), recall_body(), reorder_sorter(), send_downstream(), send_eos(), send_parsed_content(), sendfile_handler(), ServerSupportFunction(), ssl_io_filter_Upgrade(), storeAtts(), WriteClient(), and xlate_brigade().

char const* b
 

Definition at line 87 of file apr_strings.h.

char int base
 

Definition at line 309 of file apr_strings.h.

char* buf
 

Definition at line 327 of file apr_strings.h.

const char apr_size_t dst_size
 

Definition at line 190 of file apr_strings.h.

char** end
 

Definition at line 309 of file apr_strings.h.

Referenced by add_any_filter(), AP_CORE_DECLARE_NONSTD(), APR_DECLARE(), get_entry(), get_filter_handle(), main(), PROXY_DECLARE(), shmcb_remove_session_id(), string_strtoi64(), vhost_alias_interpolate(), and XML_Parse().

apr_brigade_flush void const char * fmt
 

Definition at line 923 of file apr_buckets.h.

const char* fmt
 

Definition at line 168 of file apr_strings.h.

const char char** last
 

Definition at line 223 of file apr_strings.h.

Referenced by CACHE_DECLARE(), original_uri(), and vhost_alias_interpolate().

const void* m
 

Definition at line 129 of file apr_strings.h.

apr_off_t n
 

Definition at line 293 of file apr_strings.h.

Referenced by add_any_filter(), add_env_variable(), ap_proxy_send_dir_filter(), appendAttributeValue(), APR_OPTIONAL_FN_TYPE(), apr_table_cat(), apr_wait_for_io_or_timeout(), cache_tlb_hash(), CaseFilterInFilter(), CaseFilterOutFilter(), check_pipe_of_death(), chkpage(), count_string(), deflate_set_buffer_size(), delpair(), do_emit_plain(), do_expand(), doContent(), doit(), find_title(), fitpair(), get_filter_handle(), getpair(), help(), hook_fixup(), hook_uri2file(), inet_ntop4(), listener_thread(), log_after(), log_before(), main(), prdatum(), prepare(), putpair(), register_filter(), res_name_from_filename(), revision_suffix(), sdbm_hash(), select_random_value_part(), set_force_priority(), set_language_priority(), show_overrides(), ShowNotifyIcon(), sort_hook(), splpage(), ssl_callback_SSLVerify_CRL(), SSL_CTX_use_certificate_chain(), ssl_hook_Access(), ssl_init_ctx_cert_chain(), ssl_init_proxy_certs(), ssl_init_PushCAList(), ssl_io_filter_connect(), ssl_rand_seed(), ssl_scache_shmht_init(), ssl_scache_shmht_retrieve(), SSL_SESSION_id2sz(), ssl_var_lookup_ssl_cert_chain(), ssl_var_lookup_ssl_cert_dn(), ssl_var_lookup_ssl_cert_PEM(), ssl_var_lookup_ssl_cert_serial(), ssl_var_lookup_ssl_cert_valid(), storeAtts(), storeEntityValue(), string_error(), string_strtoi64(), test(), tsort(), utf8_toUtf16(), worker_thread(), and writev_it_all().

apr_off_t n
 

Definition at line 293 of file apr_strings.h.

const struct iovec apr_size_t apr_size_t* nbytes
 

Definition at line 147 of file apr_strings.h.

const struct iovec apr_size_t nvec
 

Definition at line 147 of file apr_strings.h.

const char * s
 

Definition at line 119 of file apr_strings.h.

Referenced by add_alias_internal(), add_module_info(), add_pass(), add_pass_reverse(), add_proxy(), add_redirect_internal(), allow_cmd(), ap_buffered_log_writer(), AP_DECLARE(), ap_default_log_writer(), ap_set_send_buffer_size(), apply_rewrite_list(), apr_caret_escape_args(), apr_ctime(), APR_DECLARE(), apr_file_transfer_contents(), apr_rfc822_date(), APU_DECLARE(), ascmagic(), CACHE_DECLARE(), cdata_handler(), conv_fp(), dav_append_prop(), dav_core_insert_prop(), DAV_DECLARE(), dav_failed_proppatch(), dav_fs_get_resource(), dav_fs_insert_prop(), dav_gen_supported_methods(), dav_gen_supported_reports(), dav_insert_coreprop(), dav_insert_xmlns(), dav_method_options(), dav_output_prop_name(), dav_set_name(), doCdataSection(), filepath_has_drive(), flush_all_logs(), header_cmd(), header_request_env_var(), help(), log_after(), lookup_map(), magic_init(), main(), make_secure_socket(), make_sock(), master_main(), mod_info_html_cmd_string(), netware_rewrite_args(), parse(), parse_format_tag(), parse_log_item(), parse_log_misc_string(), parse_misc_string(), parse_network(), process_tags(), read_connection(), set_allowed_ports(), set_io_buffer_size(), set_max_forwards(), set_proxy_dirconn(), set_proxy_exclude(), set_recv_buffer_size(), set_script_socket(), set_scriptlog(), set_scriptlog_buffer(), set_scriptlog_length(), shell_esc(), ssl_callback_DelSessionCacheEntry(), ssl_callback_GetSessionCacheEntry(), ssl_callback_LogTracingState(), ssl_callback_NewSessionCacheEntry(), ssl_callback_proxy_cert(), ssl_callback_SSLVerify(), ssl_callback_SSLVerify_CRL(), ssl_init_Module(), ssl_io_data_cb(), ssl_pphrase_Handle_CB(), ssl_util_uuencode_binary(), store_body(), storeAtts(), string_long(), test(), test_aup(), test_mod_neg(), test_truncate(), timedif(), utf82ord(), util_ldap_cleanup_module(), and virtualhost_section().

const char* s
 

Definition at line 119 of file apr_strings.h.

const char* sep
 

Definition at line 223 of file apr_strings.h.

Referenced by find_directive(), grep_or_recurse(), and test_strtok().

const char * src
 

Definition at line 199 of file apr_strings.h.

Referenced by build_node(), dav_fs_copymove_state(), delpair(), getsfunc_BRIGADE(), main(), and non_regex_pattern().

const char* src
 

Definition at line 199 of file apr_strings.h.

char apr_pool_t* token_context
 

Definition at line 209 of file apr_strings.h.

const struct iovec* vec
 

Definition at line 147 of file apr_strings.h.