|
httpmessage
0.4.0
HTTP message parsing library
|
Classes | |
| struct | httpmessage_stringview |
| Reference to a text buffer. More... | |
Macros | |
| #define | HTTPMESSAGE_TEXT_WRITE_FILE(_written, _file, _text, _length) |
| Write content to file. More... | |
| #define HTTPMESSAGE_TEXT_WRITE_FILE | ( | _written, | |
| _file, | |||
| _text, | |||
| _length | |||
| ) |
Write content to file.
| HMAPI void httpmessage_stringview_assign | ( | httpmessage_stringview * | string, |
| const char * | text | ||
| ) |
Assign text to the string view.
| string | String view |
| text | Text |
| HMAPI int httpmessage_stringview_caseless_compare | ( | const httpmessage_stringview * | a, |
| const httpmessage_stringview * | b | ||
| ) |
Compare two string view, ignoring case.
| a | First string view |
| b | Second string view |
| HMAPI int httpmessage_stringview_caseless_compare_text | ( | const httpmessage_stringview * | a, |
| const char * | text, | ||
| size_t | length | ||
| ) |
Compare a string view to a text, ignoring case.
| a | String view to compare with text |
| text | Text |
| length | Text length |
| HMAPI void httpmessage_stringview_clear | ( | httpmessage_stringview * | string | ) |
Reset string view.
After this call, the string view will point to a NULL string of length 0.
| string | String view to reset |
| HMAPI int httpmessage_stringview_compare | ( | const httpmessage_stringview * | a, |
| const httpmessage_stringview * | b | ||
| ) |
Compare two string view.
Same behavior as strcmp()
| a | First string view |
| b | Second string view |
| HMAPI int httpmessage_stringview_compare_text | ( | const httpmessage_stringview * | a, |
| const char * | text, | ||
| size_t | length | ||
| ) |
Compare a string view to a text.
| a | String view to compare with text |
| text | Text |
| length | Text length |
| HMAPI void httpmessage_stringview_free | ( | httpmessage_stringview ** | string | ) |
Free a string view.
Release string view memory allocated with httpmessage_stringview_new()` and set the pointer to NULL
| string | String view to free. |
| httpmessage_stringview* httpmessage_stringview_new | ( | void | ) |
Allocate and initialize a new string view.
The newly created string view points to a NULL reference of length 0.
NULL on error.
1.8.13