Lines 61-67
Link Here
|
61 |
|
61 |
|
62 |
/** |
62 |
/** |
63 |
* @defgroup apr_strings String routines |
63 |
* @defgroup apr_strings String routines |
64 |
* @ingroup APR |
64 |
* @ingroup APR |
65 |
* @{ |
65 |
* @{ |
66 |
*/ |
66 |
*/ |
67 |
|
67 |
|
Lines 76-82
Link Here
|
76 |
APR_DECLARE(int) apr_strnatcmp(char const *a, char const *b); |
76 |
APR_DECLARE(int) apr_strnatcmp(char const *a, char const *b); |
77 |
|
77 |
|
78 |
/** |
78 |
/** |
79 |
* Do a natural order comparison of two strings ignoring the case of the |
79 |
* Do a natural order comparison of two strings ignoring the case of the |
80 |
* strings. |
80 |
* strings. |
81 |
* @param a The first string to compare |
81 |
* @param a The first string to compare |
82 |
* @param b The second string to compare |
82 |
* @param b The second string to compare |
Lines 109-115
Link Here
|
109 |
APR_DECLARE(char *) apr_pstrmemdup(apr_pool_t *p, const char *s, apr_size_t n); |
109 |
APR_DECLARE(char *) apr_pstrmemdup(apr_pool_t *p, const char *s, apr_size_t n); |
110 |
|
110 |
|
111 |
/** |
111 |
/** |
112 |
* duplicate the first n characters of a string into memory allocated |
112 |
* duplicate the first n characters of a string into memory allocated |
113 |
* out of a pool; the new string will be null-terminated |
113 |
* out of a pool; the new string will be null-terminated |
114 |
* @param p The pool to allocate out of |
114 |
* @param p The pool to allocate out of |
115 |
* @param s The string to duplicate |
115 |
* @param s The string to duplicate |
Lines 144-154
Link Here
|
144 |
* @param nbytes (output) strlen of new string (pass in NULL to omit) |
144 |
* @param nbytes (output) strlen of new string (pass in NULL to omit) |
145 |
* @return The new string |
145 |
* @return The new string |
146 |
*/ |
146 |
*/ |
|
|
147 |
#ifndef SKYOS |
147 |
APR_DECLARE(char *) apr_pstrcatv(apr_pool_t *p, const struct iovec *vec, |
148 |
APR_DECLARE(char *) apr_pstrcatv(apr_pool_t *p, const struct iovec *vec, |
148 |
apr_size_t nvec, apr_size_t *nbytes); |
149 |
apr_size_t nvec, apr_size_t *nbytes); |
149 |
|
150 |
#endif |
150 |
/** |
151 |
/** |
151 |
* printf-style style printing routine. The data is output to a string |
152 |
* printf-style style printing routine. The data is output to a string |
152 |
* allocated from a pool |
153 |
* allocated from a pool |
153 |
* @param p The pool to allocate out of |
154 |
* @param p The pool to allocate out of |
154 |
* @param fmt The format of the string |
155 |
* @param fmt The format of the string |
Lines 158-164
Link Here
|
158 |
APR_DECLARE(char *) apr_pvsprintf(apr_pool_t *p, const char *fmt, va_list ap); |
159 |
APR_DECLARE(char *) apr_pvsprintf(apr_pool_t *p, const char *fmt, va_list ap); |
159 |
|
160 |
|
160 |
/** |
161 |
/** |
161 |
* printf-style style printing routine. The data is output to a string |
162 |
* printf-style style printing routine. The data is output to a string |
162 |
* allocated from a pool |
163 |
* allocated from a pool |
163 |
* @param p The pool to allocate out of |
164 |
* @param p The pool to allocate out of |
164 |
* @param fmt The format of the string |
165 |
* @param fmt The format of the string |
Lines 183-192
Link Here
|
183 |
* <PRE> |
184 |
* <PRE> |
184 |
* Note the differences between this function and strncpy(): |
185 |
* Note the differences between this function and strncpy(): |
185 |
* 1) strncpy() doesn't always NUL terminate; apr_cpystrn() does. |
186 |
* 1) strncpy() doesn't always NUL terminate; apr_cpystrn() does. |
186 |
* 2) strncpy() pads the destination string with NULs, which is often |
187 |
* 2) strncpy() pads the destination string with NULs, which is often |
187 |
* unnecessary; apr_cpystrn() does not. |
188 |
* unnecessary; apr_cpystrn() does not. |
188 |
* 3) strncpy() returns a pointer to the beginning of the dst string; |
189 |
* 3) strncpy() returns a pointer to the beginning of the dst string; |
189 |
* apr_cpystrn() returns a pointer to the NUL terminator of dst, |
190 |
* apr_cpystrn() returns a pointer to the NUL terminator of dst, |
190 |
* to allow a check for truncation. |
191 |
* to allow a check for truncation. |
191 |
* </PRE> |
192 |
* </PRE> |
192 |
*/ |
193 |
*/ |
Lines 203-209
Link Here
|
203 |
APR_DECLARE(char *) apr_collapse_spaces(char *dest, const char *src); |
204 |
APR_DECLARE(char *) apr_collapse_spaces(char *dest, const char *src); |
204 |
|
205 |
|
205 |
/** |
206 |
/** |
206 |
* Convert the arguments to a program from one string to an array of |
207 |
* Convert the arguments to a program from one string to an array of |
207 |
* strings terminated by a NULL pointer |
208 |
* strings terminated by a NULL pointer |
208 |
* @param arg_str The arguments to convert |
209 |
* @param arg_str The arguments to convert |
209 |
* @param argv_out Output location. This is a pointer to an array of strings. |
210 |
* @param argv_out Output location. This is a pointer to an array of strings. |
Lines 214-220
Link Here
|
214 |
apr_pool_t *token_context); |
215 |
apr_pool_t *token_context); |
215 |
|
216 |
|
216 |
/** |
217 |
/** |
217 |
* Split a string into separate null-terminated tokens. The tokens are |
218 |
* Split a string into separate null-terminated tokens. The tokens are |
218 |
* delimited in the string by one or more characters from the sep |
219 |
* delimited in the string by one or more characters from the sep |
219 |
* argument. |
220 |
* argument. |
220 |
* @param str The string to separate; this should be specified on the |
221 |
* @param str The string to separate; this should be specified on the |
Lines 310-316
Link Here
|
310 |
* digits are prefixed with '0x', in which case it will be treated as |
311 |
* digits are prefixed with '0x', in which case it will be treated as |
311 |
* base 16. |
312 |
* base 16. |
312 |
*/ |
313 |
*/ |
313 |
APR_DECLARE(apr_status_t) apr_strtoff(apr_off_t *offset, const char *buf, |
314 |
APR_DECLARE(apr_status_t) apr_strtoff(apr_off_t *offset, const char *buf, |
314 |
char **end, int base); |
315 |
char **end, int base); |
315 |
|
316 |
|
316 |
/** |
317 |
/** |