dbp::char_compare Class Reference

Case insensitive char comparing. More...

#include <strutils.h>

List of all members.

Public Member Functions

 char_compare (const std::ctype< char > &c)
 Constructor.
bool operator() (char x, char y) const
 Compare two characters.

Detailed Description

Case insensitive char comparing.

The compare functor class is used for case insensitive comparing of two chars, with optionally provided locale, for example:

if (char_compare()(c1, c2)) {...};

Member Function Documentation

bool dbp::char_compare::operator() ( char  x,
char  y 
) const [inline]

Compare two characters.

Parameters:
x first char to compare
y second char to compare
Returns:
true, if x == y, or false otherwise

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

 
Support This Project
SourceForge.net Logo