Simplify to_lower cases
Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
This commit is contained in:
parent
9242cf1421
commit
801abe52a3
1 changed files with 1 additions and 3 deletions
|
@ -8961,10 +8961,8 @@ struct llm_tokenizer_wpm {
|
||||||
if (code > 0xFFFF) {
|
if (code > 0xFFFF) {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
return std::tolower(static_cast<wchar_t>(code), std::locale("en_US.UTF-8"));
|
|
||||||
#else
|
|
||||||
return std::tolower((wchar_t)code, std::locale("en_US.UTF-8"));
|
|
||||||
#endif
|
#endif
|
||||||
|
return std::tolower(wchar_t(code), std::locale("en_US.UTF-8"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_ascii_punct(uint32_t code) {
|
bool is_ascii_punct(uint32_t code) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue