42 references to Utf16Utility
System.Private.CoreLib (42)
src\libraries\Common\src\System\HexConverter.cs (1)
299
if (!
Utf16Utility
.AllCharsInVectorAreAscii(vec1 | vec2) ||
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (12)
99
if (!
Utf16Utility
.AllCharsInVectorAreAscii(vec1 | vec2))
126
if (!
Utf16Utility
.AllCharsInVectorAreAscii(vec1 | vec2))
147
if (
Utf16Utility
.AllCharsInVectorAreAscii(vec1) ||
Utf16Utility
.AllCharsInVectorAreAscii(vec2))
192
if (!
Utf16Utility
.AllCharsInUInt32AreAscii((uint)temp | (uint)(temp >> 32)))
204
if (!
Utf16Utility
.UInt64OrdinalIgnoreCaseAscii(valueAu64, valueBu64))
225
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(valueAu32 | valueBu32))
237
if (!
Utf16Utility
.UInt32OrdinalIgnoreCaseAscii(valueAu32, valueBu32))
277
if (
Utf16Utility
.AllCharsInUInt32AreAscii(valueAu32) ||
Utf16Utility
.AllCharsInUInt32AreAscii(valueBu32))
286
if (
Utf16Utility
.AllCharsInUInt64AreAscii(valueAu64) ||
Utf16Utility
.AllCharsInUInt64AreAscii(valueBu64))
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (3)
291
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(tempValue))
295
if ((toUpper) ?
Utf16Utility
.UInt32ContainsAnyLowercaseAsciiChar(tempValue) :
Utf16Utility
.UInt32ContainsAnyUppercaseAsciiChar(tempValue))
src\libraries\System.Private.CoreLib\src\System\Marvin.OrdinalIgnoreCase.cs (4)
29
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(tempValue))
33
p0 +=
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(tempValue);
54
p0 +=
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(tempValue) + (0x800000u - 0x80u);
59
p0 += (
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(tempValue) << 16) + 0x8000u - 0x80000000u;
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (5)
940
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0 | p1))
954
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0))
989
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0 | p1))
1010
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0 | p1))
1021
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0))
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (6)
331
if (!
Utf16Utility
.AllCharsInUInt64AreAscii(nextBlockAsUInt64))
336
?
Utf16Utility
.ConvertAllAsciiCharsInUInt64ToUppercase(nextBlockAsUInt64)
337
:
Utf16Utility
.ConvertAllAsciiCharsInUInt64ToLowercase(nextBlockAsUInt64);
390
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(nextBlockAsUInt32))
395
?
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(nextBlockAsUInt32)
396
:
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToLowercase(nextBlockAsUInt32);
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
1420
return UnsafeCreate(
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToLowercase(value._value));
1469
return UnsafeCreate(
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(value._value));
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (8)
916
if (
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord))
1001
if (!
Utf16Utility
.AllCharsInUInt64AreAscii(possibleNonAsciiQWord))
1049
if (
Utf16Utility
.AllCharsInUInt64AreAscii(possibleNonAsciiQWord)) // all chars in first QWORD are ASCII
1073
Debug.Assert(!
Utf16Utility
.AllCharsInUInt64AreAscii(possibleNonAsciiQWord)); // this condition should've been checked earlier
1076
if (
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord))
1100
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord | secondDWord))
1124
if (
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord))
1141
Debug.Assert(!
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord)); // this should have been handled earlier
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
236
char* ptrToFirstInvalidChar =
Utf16Utility
.GetPointerToFirstInvalidChar(pChars, charsLength, out long utf8CodeUnitCountAdjustment, out _);