|
ELinks 0.20.0
|
#include <string.h>
Data Structures | |
| union | [union].__unnamed0__ |
Data Fields | |
| int | magic |
| union | |
| int | length |
Related Symbols | |
(Note that these are not member symbols.) | |
| struct string * | add_long_to_string (struct string *string, long long number) |
| struct string * | add_knum_to_string (struct string *string, long long num) |
| struct string * | add_xnum_to_string (struct string *string, long long xnum) |
| struct string * | add_duration_to_string (struct string *string, long seconds) |
| struct string * | add_timeval_to_string (struct string *string, timeval_T *timeval) |
| NONSTATIC_INLINE struct string * | add_to_string (struct string *string, const char *source) |
| NONSTATIC_INLINE struct string * | add_crlf_to_string (struct string *string) |
| NONSTATIC_INLINE struct string * | add_string_to_string (struct string *string, const struct string *from) |
| struct string * | add_file_to_string (struct string *string, const char *filename) |
| NONSTATIC_INLINE struct string * | add_char_to_string (struct string *string, unsigned char character) |
| struct string * | init_string (struct string *string) |
| Initializes the passed string struct by preallocating the string.source member. | |
| void | done_string (struct string *string) |
| Resets string and free()s the string.source member. | |
| struct string * | string_concat (struct string *string,...) |
| Adds each C string to string until a terminating (char *) NULL is met. | |
| struct string * | add_xchar_to_string (struct string *string, unsigned char character, int times) |
| Extends the string with times number of character. | |
| struct string * | add_format_to_string (struct string *string, const char *format,...) |
| Add printf()-style format string to string. | |
| static char * | squeezastring (struct string *string) |
| Get a regular newly allocated stream of bytes from string. | |
Encoders: | |
They encode and add to the string. This way we don't need to first allocate and encode a temporary string, add it and then free it. Can be used as backends for encoder. | |
| struct string * | add_string_replace (struct string *string, char *src, int len, unsigned char replaceable, unsigned char replacement) |
| A simple generic encoder. | |
| #define | add_optname_to_string(str, src, len) |
| #define | add_real_optname_to_string(str, src, len) |
| Maybe a bad name but it is actually the real name, but you may also think of it as adding the decoded option name. | |
| struct string * | add_html_to_string (struct string *string, const char *html, int htmllen) |
| Convert reserved chars to html &#xx;. | |
| struct string * | add_cp_html_to_string (struct string *string, int src_codepage, const char *html, int htmllen) |
| Convert reserved or non-ASCII chars to html &#xx;. | |
| struct string * | add_quoted_to_string (struct string *string, const char *q, int qlen) |
| Escapes \ and " with a \. | |
| struct string * | add_shell_quoted_to_string (struct string *string, const char *src, int len) |
| Adds ', len bytes of src with all single-quotes converted to '\'', and ' to string. | |
|
|
Convert reserved or non-ASCII chars to html &#xx;.
The resulting string can be correctly parsed in any charset where bytes 0x20...0x7E match ASCII.
Add printf()-style format string to string.
Convert reserved chars to html &#xx;.
This function copies bytes 0x80...0xFF unchanged, so the caller should ensure that the resulting HTML will be parsed with the same charset as the original string. (This function cannot use the   syntax for non-ASCII, because HTML wants Unicode numbers there and this function does not know the charset of the input data.)
|
Escapes \ and " with a \.
|
Maybe a bad name but it is actually the real name, but you may also think of it as adding the decoded option name.
Adds ', len bytes of src with all single-quotes converted to '\'', and ' to string.
|
A simple generic encoder.
Should maybe take replaceable as a string so we could also use it for adding shell safe strings.
|
Extends the string with times number of character.
Initializes the passed string struct by preallocating the string.source member.
|
Get a regular newly allocated stream of bytes from string.
Adds each C string to string until a terminating (char *) NULL is met.
| int string::length |
| int string::magic |