Home --> Documentations --> PJLIB-UTIL Reference
◆ pj_str_unescape()
Unescape string. If source string does not contain any escaped characters, the function would simply return the original string. Otherwise a new string will be allocated.
- Parameters
-
pool | Pool to allocate the string. |
src | Source string to unescape. |
- Returns
- String with no escaped characters.
◆ pj_strcpy_unescape()
Unescape string to destination.
- Parameters
-
dst | Target string. |
src | Source string. |
- Returns
- Target string.
◆ pj_strncpy2_escape()
Copy string to destination while escaping reserved characters, up to the specified maximum length.
- Parameters
-
dst | Target string. |
src | Source string. |
max | Maximum length to copy to target string. |
unres | Unreserved characters, which are allowed to appear unescaped. |
- Returns
- The length of the destination, or -1 if there's not enough buffer.
References PJ_END_DECL.
◆ pj_strncpy_escape()
Copy string to destination while escaping reserved characters, up to the specified maximum length.
- Parameters
-
dst | Target string. |
src | Source string. |
max | Maximum length to copy to target string. |
unres | Unreserved characters, which are allowed to appear unescaped. |
- Returns
- The target string if all characters have been copied successfully, or NULL if there's not enough buffer to escape the strings.
PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.
|