Blame view

morfeusz/charset/CaseConverter.hpp 487 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
14
15
16
17
#include <map>

class CaseConverter {
public:
    CaseConverter();
    uint32_t toLower(uint32_t codepoint) const;
Michał Lenart authored
18
    uint32_t toTitle(uint32_t codepoint) const;
Michał Lenart authored
19
private:
Michał Lenart authored
20
21
    std::map<uint32_t, uint32_t> extToLowercaseMap;
    std::map<uint32_t, uint32_t> extToTitlecaseMap;
Michał Lenart authored
22
23
24
25
};

#endif	/* CASECONVERTER_HPP */