30 #ifndef _CMIME_STRING_H
31 #define _CMIME_STRING_H
55 typedef enum _CMimeStringEncodingType_T {
96 #define cmime_string_list_get_count(sl) ((int)sl->count)
char * cmime_string_list_get(CMimeStringList_T *sl, int pos)
Return string at given position.
Definition: cmime_string.c:63
CMimeStringList_T * cmime_string_list_new(void)
Creates a new CMimeStringList_T object.
Definition: cmime_string.c:31
size_t count
Definition: cmime_string.h:48
Definition: cmime_string.h:56
char * cmime_string_strip(char *s)
Strip leading/trailing spaces from string. This function doesn't allocate or reallocate any memory; i...
Definition: cmime_string.c:69
char * cmime_string_encode_to_7bit(const char *s, CMimeStringEncodingType_T t)
Convert given string to 7 bit mime encoded string based on RFC 2047.
Definition: cmime_string.c:125
void cmime_string_list_insert(CMimeStringList_T *sl, const char *s)
Insert new string into list.
Definition: cmime_string.c:52
Definition: cmime_string.h:57
char ** node
Definition: cmime_string.h:47
CMimeStringEncodingType_T
Possible string encoding types.
Definition: cmime_string.h:55
int cmime_string_is_7bit(const char *s)
Determine if given string is 7bit only or not.
Definition: cmime_string.c:98
char * cmime_string_chomp(char *s)
remove trailing newline from string This function doesn't allocate or reallocate any memory; it modif...
Definition: cmime_string.c:79
A simple list with strings.
Definition: cmime_string.h:46
void cmime_string_list_free(CMimeStringList_T *sl)
Free a CMimeStringList_t object.
Definition: cmime_string.c:39
int cmime_string_is_8bit(const char *s)
Determine if given string contains 8bit characters.
Definition: cmime_string.c:112