GME
13
|
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_int64_t) apr_strtoi64(const char *buf | |
Variables | |
char const * | b |
const char * | s |
const char apr_size_t | n |
const void * | m |
struct iovec * | vec |
struct iovec apr_size_t | nvec |
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_t * | token_context |
const char * | sep |
const char char ** | last |
const char * | buf |
const char char ** | end |
const char char int | base |
const char __attribute__ | ( | (format(printf, 2, 3)) | ) |
APR_DECLARE | ( | int | ) | const |
Do a natural order comparison of two strings.
a | The first string to compare |
b | The second string to compare |
Do a natural order comparison of two strings ignoring the case of the strings.
a | The first string to compare |
b | The second string to compare |
Convert the arguments to a program from one string to an array of strings terminated by a NULL pointer
arg_str | The arguments to convert |
argv_out | Output location. This is a pointer to an array of strings. |
token_context | Pool to use. |
vsnprintf routine based on apr_vformatter. This means it understands the same extensions.
buf | The buffer to write to |
len | The size of the buffer |
format | The format string |
ap | The arguments to use to fill out the format string. |
Convert a numeric string into an apr_off_t numeric value.
offset | The value of the parsed string. |
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 NULL, 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. |
APR_DECLARE | ( | char * | ) |
duplicate a string into memory allocated out of a pool
p | The pool to allocate out of |
s | The string to duplicate |
Create a null-terminated string by making a copy of a sequence of characters and appending a null byte
p | The pool to allocate out of |
s | The block of characters to duplicate |
n | The number of characters to duplicate |
Duplicate at most n characters of a string into memory allocated out of a pool; the new string will be NUL-terminated
p | The pool to allocate out of |
s | The string to duplicate |
n | The maximum number of characters to duplicate |
Concatenate multiple strings specified in a writev-style vector
p | The pool from which to allocate |
vec | The strings to concatenate |
nvec | The number of strings to concatenate |
nbytes | (output) strlen of new string (pass in NULL to omit) |
printf-style style printing routine. The data is output to a string allocated from a pool
p | The pool to allocate out of |
fmt | The format of the string |
ap | The arguments to use while printing the data |
Copy up to dst_size characters from src to dst; does not copy past a NUL terminator in src, but always terminates dst with a NUL regardless.
dst | The destination string |
src | The source string |
dst_size | The space available in dst; dst always receives NUL termination, so if src is longer than dst_size, the actual number of characters copied is dst_size - 1. |
Note the differences between this function and strncpy(): 1) strncpy() doesn't always NUL terminate; apr_cpystrn() does. 2) strncpy() pads the destination string with NULs, which is often unnecessary; apr_cpystrn() does not. 3) strncpy() returns a pointer to the beginning of the dst string; apr_cpystrn() returns a pointer to the NUL terminator of dst, to allow a check for truncation.
Remove all whitespace from a string
dest | The destination string. It is okay to modify the string in place. Namely dest == src |
src | The string to rid the spaces from. |
Split a string into separate null-terminated tokens. The tokens are delimited in the string by one or more characters from the sep argument.
str | The string to separate; this should be specified on the first call to apr_strtok() for a given string, and NULL on subsequent calls. |
sep | The set of delimiters |
last | Internal state saved by apr_strtok() between calls. |
create a string representation of an int, allocated from a pool
p | The pool from which to allocate |
n | The number to format |
create a string representation of a long, allocated from a pool
p | The pool from which to allocate |
n | The number to format |
create a string representation of an apr_off_t, allocated from a pool
p | The pool from which to allocate |
n | The number to format |
Format a binary size (magnitiudes are 2^10 rather than 10^3) from an apr_off_t, as bytes, K, M, T, etc, to a four character compacted human readable string.
size | The size to format |
buf | The 5 byte text buffer (counting the trailing null) |
APR_DECLARE | ( | void * | ) |
Duplicate a block of memory.
p | The pool to allocate from |
m | The memory to duplicate |
n | The number of bytes to duplicate |
APR_DECLARE | ( | apr_int64_t | ) | const |
parse a numeric string into a 64-bit numeric value
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 NULL, 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. |
parse a base-10 numeric string into a 64-bit numeric value. Equivalent to apr_strtoi64(buf, (char**)NULL, 10).
buf | The string to parse |
APR_DECLARE_NONSTD | ( | char * | ) |
Concatenate multiple strings, allocating memory out a pool
p | The pool to allocate out of |
... | The strings to concatenate. The final string must be NULL |
printf-style style printing routine. The data is output to a string allocated from a pool
p | The pool to allocate out of |
fmt | The format of the string |
... | The arguments to use while printing the data |
apr_size_t const char va_list ap |
Definition at line 172 of file apr_strings.h.
char*** argv_out |
Definition at line 227 of file apr_strings.h.
char const* b |
Definition at line 76 of file apr_strings.h.
Definition at line 329 of file apr_strings.h.
char* buf |
Definition at line 329 of file apr_strings.h.
const char apr_size_t dst_size |
Definition at line 207 of file apr_strings.h.
char ** end |
Definition at line 329 of file apr_strings.h.
const char* fmt |
Definition at line 172 of file apr_strings.h.
const char char** last |
Definition at line 241 of file apr_strings.h.
const void* m |
Definition at line 135 of file apr_strings.h.
const char apr_int32_t n |
Definition at line 109 of file apr_strings.h.
struct iovec apr_size_t apr_size_t* nbytes |
Definition at line 161 of file apr_strings.h.
struct iovec apr_size_t nvec |
Definition at line 161 of file apr_strings.h.
const char * s |
Definition at line 95 of file apr_strings.h.
const char* sep |
Definition at line 241 of file apr_strings.h.
const char * src |
Definition at line 207 of file apr_strings.h.
char apr_pool_t* token_context |
Definition at line 227 of file apr_strings.h.
struct iovec* vec |
Definition at line 161 of file apr_strings.h.