Generic string handling functions.
More...
#include "../../ut.h"
#include "strcommon.h"
Go to the source code of this file.
Functions
-
void compute_md5 (char *dst, char *src, int src_len)
- Compute MD5 checksum.
-
int escape_common (char *dst, char *src, int src_len)
- add backslashes to special characters
-
int escape_param (str *sin, str *sout)
- Escape all printable characters that are not valid in a param part of request uri: = | ; | , | | " | ? | &.
- int escape_user (str *sin, str *sout)
- Escape all printable characters that are not valid in user part of request uri no_need_to_escape = unreserved | user-unreserved unreserved = aplhanum | mark mark = - | _ | .
-
int unescape_common (char *dst, char *src, int src_len)
- remove backslashes to special characters
-
int unescape_user (str *sin, str *sout)
- Unscape all printable ASCII characters.
Detailed Description
Definition in file strcommon.c.
Function Documentation
| int escape_user |
( |
str * |
sin, |
|
|
str * |
sout | |
|
) |
| | |