|
1
2
3
4
5
6
7
8
9
10
|
/*
* File: CaseConverter.hpp
* Author: lennyn
*
* Created on November 22, 2013, 2:36 PM
*/
#ifndef CASECONVERTER_HPP
#define CASECONVERTER_HPP
|
|
11
|
#include <inttypes.h>
|
|
12
13
14
15
16
17
|
#include <map>
class CaseConverter {
public:
CaseConverter();
uint32_t toLower(uint32_t codepoint) const;
|
|
18
|
uint32_t toTitle(uint32_t codepoint) const;
|
|
19
|
private:
|
|
20
21
|
std::map<uint32_t, uint32_t> extToLowercaseMap;
std::map<uint32_t, uint32_t> extToTitlecaseMap;
|
|
22
23
24
25
|
};
#endif /* CASECONVERTER_HPP */
|