Blame view

morfeusz/case/CaseConverter.hpp 512 Bytes
Michał Lenart authored
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
Michał Lenart authored
11
#include <inttypes.h>
Michał Lenart authored
12
13
#include <map>
Michał Lenart authored
14
15
namespace morfeusz {
Michał Lenart authored
16
17
18
19
class CaseConverter {
public:
    CaseConverter();
    uint32_t toLower(uint32_t codepoint) const;
Michał Lenart authored
20
    uint32_t toTitle(uint32_t codepoint) const;
Michał Lenart authored
21
private:
Michał Lenart authored
22
23
    std::map<uint32_t, uint32_t> extToLowercaseMap;
    std::map<uint32_t, uint32_t> extToTitlecaseMap;
Michał Lenart authored
24
25
};
Michał Lenart authored
26
27
}
Michał Lenart authored
28
29
#endif	/* CASECONVERTER_HPP */