sanitizer Class Reference

Inheritance diagram for sanitizer:

function

List of all members.

Public Member Functions

 sanitizer (std::locale loc)
 Cache the locale.
std::string operator() (std::string str)


Detailed Description

Sanitize a string by keeping only alphabetic characters.

Definition at line 125 of file word_count.cpp.


Member Function Documentation

std::string sanitizer::operator() ( std::string  str  )  [inline]

Sanitize a string. Erase non-letter characters, then convert the string to lowercase.

Parameters:
str The string to sanitize.

Definition at line 133 of file word_count.cpp.


The documentation for this class was generated from the following file:
Generated on Sun Nov 30 09:53:23 2008 for Exploring C++ - Final Forms of Key Examples by  doxygen 1.5.3