17 references to UnsafeCreate
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1075return Rune.UnsafeCreate((uint)utf32).ToString();
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (15)
183public static Rune ReplacementChar => UnsafeCreate(UnicodeUtility.ReplacementChar); 252return UnsafeCreate(modified[0]); 256return UnsafeCreate(UnicodeUtility.GetScalarFromUtf16SurrogatePair(modified[0], modified[1])); 427result = UnsafeCreate(tempValue); 548result = UnsafeCreate(tempValue); 647value = UnsafeCreate(tempValue); 802return UnsafeCreate((uint)runeValue); 980result = UnsafeCreate(extendedValue); 1009result = UnsafeCreate((highSurrogateOffset << 10) + ((uint)lowSurrogate - LowSurrogateStart) + (0x40u << 10)); 1033result = UnsafeCreate(value); 1178value = UnsafeCreate((uint)runeValue); 1448return UnsafeCreate(Utf16Utility.ConvertAllAsciiCharsInUInt32ToLowercase(value._value)); 1454return UnsafeCreate(CharUnicodeInfo.ToLower(value._value)); 1497return UnsafeCreate(Utf16Utility.ConvertAllAsciiCharsInUInt32ToUppercase(value._value)); 1503return UnsafeCreate(CharUnicodeInfo.ToUpper(value._value));
src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
49_current = Rune.UnsafeCreate((uint)scalarValue);