|
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
|
#include <map>
|
|
14
15
|
namespace morfeusz {
|
|
16
17
18
19
|
class CaseConverter {
public:
CaseConverter();
uint32_t toLower(uint32_t codepoint) const;
|
|
20
|
uint32_t toTitle(uint32_t codepoint) const;
|
|
21
|
private:
|
|
22
23
|
std::map<uint32_t, uint32_t> extToLowercaseMap;
std::map<uint32_t, uint32_t> extToTitlecaseMap;
|
|
24
25
|
};
|
|
26
27
|
}
|
|
28
29
|
#endif /* CASECONVERTER_HPP */
|