libsapling
0.8.0
|
Text utilities. More...
Go to the source code of this file.
Functions | |
void | text__escape (char *dst, const char *src) |
Escapes some characters in a string. More... | |
void | text__unescape (char *dst, const char *src) |
Unescapes some characters in a string. More... | |
Text utilities.
void text__escape | ( | char * | dst, |
const char * | src | ||
) |
Escapes some characters in a string.
dst | Pointer to the destination array where the escaped string will be stored. |
src | String to be escaped. |
\
(Backslash)"
(Double quotation mark)\t
(Horizontal Tab)\r
(Carriage Return)\n
(Newline/Line Feed)void text__unescape | ( | char * | dst, |
const char * | src | ||
) |
Unescapes some characters in a string.
dst | Pointer to the destination array where the unescaped string will be stored. |
src | String to be unescaped. |
\
(Backslash)"
(Double quotation mark)\t
(Horizontal Tab)\r
(Carriage Return)\n
(Newline/Line Feed)