@@ -112,27 +112,27 @@ static uint32_t unicode_cpt_from_utf8(const std::string & utf8, size_t & offset)
112
112
static std::unordered_map<uint32_t , int > unicode_cpt_type_map () {
113
113
std::unordered_map<uint32_t , int > cpt_types;
114
114
for (auto p : unicode_ranges_number) {
115
- for (auto i = p.first ; i <= p.second ; ++ i) {
115
+ for (auto i = p.first ; i <= p.second ; ++i) {
116
116
cpt_types[i] = CODEPOINT_TYPE_NUMBER;
117
117
}
118
118
}
119
119
for (auto p : unicode_ranges_letter) {
120
- for (auto i = p.first ; i <= p.second ; ++ i) {
120
+ for (auto i = p.first ; i <= p.second ; ++i) {
121
121
cpt_types[i] = CODEPOINT_TYPE_LETTER;
122
122
}
123
123
}
124
124
for (auto p : unicode_ranges_separator) {
125
- for (auto i = p.first ; i <= p.second ; ++ i) {
125
+ for (auto i = p.first ; i <= p.second ; ++i) {
126
126
cpt_types[i] = CODEPOINT_TYPE_SEPARATOR;
127
127
}
128
128
}
129
129
for (auto p : unicode_ranges_accent_mark) {
130
- for (auto i = p.first ; i <= p.second ; ++ i) {
130
+ for (auto i = p.first ; i <= p.second ; ++i) {
131
131
cpt_types[i] = CODEPOINT_TYPE_ACCENT_MARK;
132
132
}
133
133
}
134
134
for (auto p : unicode_ranges_punctuation) {
135
- for (auto i = p.first ; i <= p.second ; ++ i) {
135
+ for (auto i = p.first ; i <= p.second ; ++i) {
136
136
cpt_types[i] = CODEPOINT_TYPE_PUNCTUATION;
137
137
}
138
138
}
@@ -142,7 +142,7 @@ static std::unordered_map<uint32_t, int> unicode_cpt_type_map() {
142
142
}
143
143
}
144
144
for (auto p : unicode_ranges_control) {
145
- for (auto i = p.first ; i <= p.second ; ++ i) {
145
+ for (auto i = p.first ; i <= p.second ; ++i) {
146
146
cpt_types[i] = CODEPOINT_TYPE_CONTROL;
147
147
}
148
148
}
@@ -629,7 +629,7 @@ bool unicode_cpt_is_whitespace(uint32_t cp) {
629
629
static const std::unordered_set<uint32_t > is_whitespace = [] {
630
630
std::unordered_set<uint32_t > is_whitespace;
631
631
for (auto p : unicode_ranges_whitespace) {
632
- for (auto i = p.first ; i <= p.second ; ++ i) {
632
+ for (auto i = p.first ; i <= p.second ; ++i) {
633
633
is_whitespace.insert (i);
634
634
}
635
635
}
0 commit comments