Bug fix: use only iswlower() in RankedMatch::is_word_boundary()
This commit is contained in:
parent
513753a2ec
commit
02f9db616c
|
@ -174,7 +174,7 @@ RankedMatch::RankedMatch(StringView candidate, StringView query)
|
||||||
static bool is_word_boundary(Codepoint prev, Codepoint c)
|
static bool is_word_boundary(Codepoint prev, Codepoint c)
|
||||||
{
|
{
|
||||||
return (iswalnum((wchar_t)prev)) != iswalnum((wchar_t)c) or
|
return (iswalnum((wchar_t)prev)) != iswalnum((wchar_t)c) or
|
||||||
(iswlower((wchar_t)prev) != islower((wchar_t)c));
|
(iswlower((wchar_t)prev) != iswlower((wchar_t)c));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RankedMatch::operator<(const RankedMatch& other) const
|
bool RankedMatch::operator<(const RankedMatch& other) const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user