Public Types | Public Member Functions

atscppapi::HeaderFieldName Class Reference

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.

Detailed Description

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.


Member Typedef Documentation

typedef std::string::size_type atscppapi::HeaderFieldName::size_type

Definition at line 48 of file Headers.h.


Constructor & Destructor Documentation

atscppapi::HeaderFieldName::HeaderFieldName ( const std::string &  name  ) 

Constructor: build a new HeaderField name with the given string.


Member Function Documentation

const char* atscppapi::HeaderFieldName::c_str (  ) 
Returns:
a const char * which points to the name of this HeaderFIeldName
size_type atscppapi::HeaderFieldName::length (  ) 
Returns:
the length of this HeaderFieldName
atscppapi::HeaderFieldName::operator const char * (  ) 

const char * conversion

Returns:
a const char * which is this HeaderFieldName
atscppapi::HeaderFieldName::operator std::string (  ) 

std::string conversion

Returns:
a string which is this HeaderFieldName
bool atscppapi::HeaderFieldName::operator!= ( const char *  field_name  ) 

Case insensitive comparison of this HeaderFieldName.

Returns:
true if the two strings are not equal.
bool atscppapi::HeaderFieldName::operator!= ( const std::string &  field_name  ) 

Case insensitive comparison of this HeaderFieldName.

Returns:
true if the two strings are not equal.
bool atscppapi::HeaderFieldName::operator== ( const std::string &  field_name  ) 

Case insensitive comparison of this HeaderFieldName.

Returns:
true if the two strings are equal.
bool atscppapi::HeaderFieldName::operator== ( const char *  field_name  ) 

Case insensitive comparison of this HeaderFieldName.

Returns:
true if the two strings are equal.
std::string atscppapi::HeaderFieldName::str (  ) 
Returns:
a string which is this HeaderFieldName

The documentation for this class was generated from the following file: