Skip to content

Commit d11c454

Browse files
[Support] Use StringRef::contains_insensitive (NFC)
1 parent 78abc45 commit d11c454

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/UnicodeNameToCodepoint.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,7 @@ static std::optional<char32_t> nameToCodepoint(StringRef Name, bool Strict,
387387
std::reverse(Buffer.begin(), Buffer.end());
388388
// UAX44-LM2. Ignore case, whitespace, underscore ('_'), and all medial
389389
// hyphens except the hyphen in U+1180 HANGUL JUNGSEONG O-E.
390-
if (!Strict && Value == 0x116c &&
391-
Name.find_insensitive("O-E") != StringRef::npos) {
390+
if (!Strict && Value == 0x116c && Name.contains_insensitive("O-E")) {
392391
Buffer = "HANGUL JUNGSEONG O-E";
393392
Value = 0x1180;
394393
}

0 commit comments

Comments
 (0)