minor: remove trailing whitespaces and extra semicolons

This commit is contained in:
jaime-m-p 2024-08-05 20:52:25 +02:00
parent 8bd3749c26
commit 85c59df9ce
2 changed files with 3 additions and 3 deletions

View file

@ -864,7 +864,7 @@ std::vector<std::string> unicode_regex_split(const std::string & text, const std
} }
// parse more metcharacters and espaped characters // parse more metcharacters and espaped characters
if (cpt == '\\') { if (cpt == '\\') {
switch (cpts_regex[i + 1]) { switch (cpts_regex[i + 1]) {
case 's': ++i; continue; // \s whitespaces case 's': ++i; continue; // \s whitespaces
case 'w': ++i; continue; // \w words case 'w': ++i; continue; // \w words
@ -933,7 +933,7 @@ std::vector<std::string> unicode_regex_split(const std::string & text, const std
if (range.first < range.second) { if (range.first < range.second) {
it->second += (wchar_t) '-'; it->second += (wchar_t) '-';
it->second += (wchar_t) range.second; it->second += (wchar_t) range.second;
} }
} }
} }
prev_range = range; prev_range = range;

View file

@ -162,7 +162,7 @@ struct codepoint_categ {
case 'Z': return Z | (_subindex(subcateg, "lps" ) << 7); case 'Z': return Z | (_subindex(subcateg, "lps" ) << 7);
default: assert (false); return 0; default: assert (false); return 0;
} }
}; }
uint16_t encoded; uint16_t encoded;
}; };