Data Structures | |
| struct | s_string |
Typedefs | |
| typedef s_string | t_string |
Functions | |
| void | str_init (t_string *str) |
| void | str_cleanup (t_string *str) |
| size_t | str_char_append (t_string *str, const u_char content) |
| size_t | str_chars_append (t_string *str, const u_char *content, size_t length) |
| size_t | str_str_append (t_string *str, t_string *content) |
| size_t | str_char_set (t_string *str, const u_char *content, size_t length) |
| size_t | str_str_set (t_string *str, t_string *content) |
| int | str_equal_string (const t_string *str1, const t_string *str2) |
| int | str_equal_chars (const t_string *str1, const u_char *str2, size_t len) |
|
|
This is the heart of the string abstraction. It contains the string itself, the length of the string and the size of the reserved memory for the string. |
|
||||||||||||
|
This function appends a character to the string
|
|
||||||||||||||||
|
This function sets the value of an string structure to a given u_char array. The old string contained in the structure will be lost.
|
|
||||||||||||||||
|
This function appends a u_char array to the string in the string structure.
|
|
|
This function frees the reserved memory in a string structure and sets everything to NULL
|
|
||||||||||||||||
|
This function tests if two strings (t_string, u_char *) are equal
|
|
||||||||||||
|
This function tests if two strings (t_string) are equal
|
|
|
This function initializes a string structure. It just sets everything to 0
|
|
||||||||||||
|
This function appends a string structure to a string structure. It's just a wrapper for the str_chars_append() function.
|
|
||||||||||||
|
This function sets the value of a string structure to the value of another string structure. The old string contained in the target structure will be lost.
|
1.3.5