A HeaderFieldName is a lightweight wrapper around a string that allows for case insensitive comparisons. More...
#include <Headers.h>
Public Types | |
typedef std::string::size_type | size_type |
Public Member Functions | |
HeaderFieldName (const std::string &name) | |
Constructor: build a new HeaderField name with the given string. | |
operator std::string () | |
std::string conversion | |
operator const char * () | |
const char * conversion | |
size_type | length () |
std::string | str () |
const char * | c_str () |
bool | operator== (const char *field_name) |
Case insensitive comparison of this HeaderFieldName. | |
bool | operator== (const std::string &field_name) |
Case insensitive comparison of this HeaderFieldName. | |
bool | operator!= (const char *field_name) |
Case insensitive comparison of this HeaderFieldName. | |
bool | operator!= (const std::string &field_name) |
Case insensitive comparison of this HeaderFieldName. |
A HeaderFieldName is a lightweight wrapper around a string that allows for case insensitive comparisons.
Because header field names must be case insensitive this allows easy case insentive comparisons of names.
Definition at line 44 of file Headers.h.
typedef std::string::size_type atscppapi::HeaderFieldName::size_type |
atscppapi::HeaderFieldName::HeaderFieldName | ( | const std::string & | name | ) |
Constructor: build a new HeaderField name with the given string.
const char* atscppapi::HeaderFieldName::c_str | ( | ) |
size_type atscppapi::HeaderFieldName::length | ( | ) |
atscppapi::HeaderFieldName::operator const char * | ( | ) |
const char * conversion
atscppapi::HeaderFieldName::operator std::string | ( | ) |
std::string conversion
bool atscppapi::HeaderFieldName::operator!= | ( | const char * | field_name | ) |
Case insensitive comparison of this HeaderFieldName.
bool atscppapi::HeaderFieldName::operator!= | ( | const std::string & | field_name | ) |
Case insensitive comparison of this HeaderFieldName.
bool atscppapi::HeaderFieldName::operator== | ( | const std::string & | field_name | ) |
Case insensitive comparison of this HeaderFieldName.
bool atscppapi::HeaderFieldName::operator== | ( | const char * | field_name | ) |
Case insensitive comparison of this HeaderFieldName.
std::string atscppapi::HeaderFieldName::str | ( | ) |