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