source: icGREP/icgrep-devel/icgrep/utf_encoding.cpp @ 4122

Last change on this file since 4122 was 3850, checked in by cameron, 5 years ago

icgrep-0.8 distribution

File size: 1.4 KB
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#include "utf_encoding.h"
8
9UTF_Encoding::UTF_Encoding()
10{
11    mEncodingError = false;
12    mDefault = true;
13    mLocked = false;
14}
15
16std::string UTF_Encoding::getName()
17{
18    return mName;
19}
20
21void UTF_Encoding::setName(std::string name)
22{
23    mName = name;
24}
25
26int UTF_Encoding::getBits()
27{
28    return mBits;
29}
30
31void UTF_Encoding::setBits(int bits)
32{
33    mBits = bits;
34}
35
36uint32_t UTF_Encoding::getMask()
37{
38    return mMask;
39}
40
41void UTF_Encoding::setMask(uint32_t mask)
42{
43    mMask = mask;
44}
45
46bool UTF_Encoding::getDefault()
47{
48    return mDefault;
49}
50
51void UTF_Encoding::setDefault(bool defaultEncoding)
52{
53    mDefault = defaultEncoding;
54}
55
56bool UTF_Encoding::getLocked()
57{
58    return mLocked;
59}
60
61void UTF_Encoding::setLocked(bool locked)
62{
63    mLocked = locked;
64}
65
66bool UTF_Encoding::getEncodingError()
67{
68    return mEncodingError;
69}
70
71void UTF_Encoding::setEncodingError(bool error)
72{
73    mEncodingError= error;
74}
75
76void UTF_Encoding::setBasisPattern(std::string pattern)
77{
78    mBasisPattern.push_back(pattern);
79}
80
81std::string UTF_Encoding::getBasisPattern(int n)
82{
83    return mBasisPattern.at(n);
84}
85
86std::vector<std::string> UTF_Encoding::getBasisPatternVector()
87{
88    return mBasisPattern;
89}
90
91
Note: See TracBrowser for help on using the repository browser.