|
(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.
|
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.
|