httpmessage  0.4.0
HTTP message parsing library
Classes | Functions
text.h File Reference

Text utility. More...

#include "httpmessage/preprocessor.h"
#include <stddef.h>
Include dependency graph for text.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  httpmessage_stringview
 Reference to a text buffer. More...
 

Functions

httpmessage_stringviewhttpmessage_stringview_new (void)
 Allocate and initialize a new string view. More...
 
HMAPI void httpmessage_stringview_assign (httpmessage_stringview *string, const char *text)
 Assign text to the string view. More...
 
HMAPI void httpmessage_stringview_clear (httpmessage_stringview *string)
 Reset string view. More...
 
HMAPI void httpmessage_stringview_free (httpmessage_stringview **string)
 Free a string view. More...
 
HMAPI int httpmessage_stringview_compare (const httpmessage_stringview *a, const httpmessage_stringview *b)
 Compare two string view. More...
 
HMAPI int httpmessage_stringview_compare_text (const httpmessage_stringview *a, const char *text, size_t length)
 Compare a string view to a text. More...
 
HMAPI int httpmessage_stringview_caseless_compare (const httpmessage_stringview *a, const httpmessage_stringview *b)
 Compare two string view, ignoring case. More...
 
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. More...
 

Detailed Description

Text utility.