- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# sanitizer Class Reference

Inheritance diagram for sanitizer:

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:

- word_count.cpp