46 references to Utf16Utility
System.Private.CoreLib (46)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (1)
354
if (!
Utf16Utility
.AllCharsInVectorAreAscii(vec1 | vec2))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (12)
100
if (!
Utf16Utility
.AllCharsInVectorAreAscii(vec1 | vec2))
127
if (!
Utf16Utility
.AllCharsInVectorAreAscii(vec1 | vec2))
148
if (
Utf16Utility
.AllCharsInVectorAreAscii(vec1) ||
Utf16Utility
.AllCharsInVectorAreAscii(vec2))
193
if (!
Utf16Utility
.AllCharsInUInt32AreAscii((uint)temp | (uint)(temp >> 32)))
205
if (!
Utf16Utility
.UInt64OrdinalIgnoreCaseAscii(valueAu64, valueBu64))
226
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(valueAu32 | valueBu32))
238
if (!
Utf16Utility
.UInt32OrdinalIgnoreCaseAscii(valueAu32, valueBu32))
278
if (
Utf16Utility
.AllCharsInUInt32AreAscii(valueAu32) ||
Utf16Utility
.AllCharsInUInt32AreAscii(valueBu32))
287
if (
Utf16Utility
.AllCharsInUInt64AreAscii(valueAu64) ||
Utf16Utility
.AllCharsInUInt64AreAscii(valueBu64))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (3)
333
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(tempValue))
337
if ((toUpper) ?
Utf16Utility
.UInt32ContainsAnyLowercaseAsciiChar(tempValue) :
Utf16Utility
.UInt32ContainsAnyUppercaseAsciiChar(tempValue))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Marvin.OrdinalIgnoreCase.cs (4)
30
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(tempValue))
34
p0 +=
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(tempValue);
55
p0 +=
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(tempValue) + (0x800000u - 0x80u);
60
p0 += (
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(tempValue) << 16) + 0x8000u - 0x80000000u;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (5)
878
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0 | p1))
892
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0))
927
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0 | p1))
948
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0 | p1))
959
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(p0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (6)
332
if (!
Utf16Utility
.AllCharsInUInt64AreAscii(nextBlockAsUInt64))
337
?
Utf16Utility
.ConvertAllAsciiCharsInUInt64ToUppercase(nextBlockAsUInt64)
338
:
Utf16Utility
.ConvertAllAsciiCharsInUInt64ToLowercase(nextBlockAsUInt64);
391
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(nextBlockAsUInt32))
396
?
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(nextBlockAsUInt32)
397
:
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToLowercase(nextBlockAsUInt32);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (4)
1528
return UnsafeCreate(
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToLowercase(value._value));
1577
return UnsafeCreate(
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(value._value));
1605
return UnsafeCreate(
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToUppercase(value._value));
1626
return UnsafeCreate(
Utf16Utility
.ConvertAllAsciiCharsInUInt32ToLowercase(value._value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16.cs (2)
17
Utf16Utility
.GetIndexOfFirstInvalidUtf16Sequence(value) < 0;
25
Utf16Utility
.GetIndexOfFirstInvalidUtf16Sequence(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (8)
918
if (
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord))
1014
if (!
Utf16Utility
.AllCharsInUInt64AreAscii(possibleNonAsciiQWord))
1067
if (
Utf16Utility
.AllCharsInUInt64AreAscii(possibleNonAsciiQWord)) // all chars in first QWORD are ASCII
1096
Debug.Assert(!
Utf16Utility
.AllCharsInUInt64AreAscii(possibleNonAsciiQWord)); // this condition should've been checked earlier
1099
if (
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord))
1123
if (!
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord | secondDWord))
1147
if (
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord))
1164
Debug.Assert(!
Utf16Utility
.AllCharsInUInt32AreAscii(thisDWord)); // this should have been handled earlier
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
236
char* ptrToFirstInvalidChar =
Utf16Utility
.GetPointerToFirstInvalidChar(pChars, charsLength, out long utf8CodeUnitCountAdjustment, out _);