46 references to ReplacementChar
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
AspNetCore\EmbeddedLanguages\AspNetCoreVirtualChar.cs (1)
28get => char.IsSurrogate(VirtualChar) ? Rune.ReplacementChar.Value : VirtualChar;
System.Private.CoreLib (37)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (2)
432/// Invalid sequences will be represented in the enumeration by <see cref="Rune.ReplacementChar"/>. 443/// Invalid sequences will be represented in the enumeration by <see cref="Rune.ReplacementChar"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.Utf8.cs (2)
18Debug.Assert(!Rune.IsWhiteSpace(Rune.ReplacementChar)); 43Debug.Assert(!Rune.IsWhiteSpace(Rune.ReplacementChar));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
337r = Rune.ReplacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (1)
608/// Invalid sequences will be represented in the enumeration by <see cref="Rune.ReplacementChar"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
819value = Rune.ReplacementChar; 828value = Rune.ReplacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
699value = Rune.ReplacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (17)
317/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="charsConsumed"/> the length of the input buffer. 321/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="charsConsumed"/> the number of 328/// will contain the real scalar value if successfully decoded, or it will contain <see cref="ReplacementChar"/> if 380result = ReplacementChar; 386result = ReplacementChar; 401/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="bytesConsumed"/> the length of the input buffer. 405/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="bytesConsumed"/> the number of 412/// will contain the real scalar value if successfully decoded, or it will contain <see cref="ReplacementChar"/> if 564result = ReplacementChar; 571result = ReplacementChar; 621result = ReplacementChar; 631result = ReplacementChar; 707value = ReplacementChar; 746value = ReplacementChar; 984result = ReplacementChar; 1019result = ReplacementChar; 1042result = ReplacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (6)
15/// Invalid Unicode symbols will be represented by the <see cref="System.Text.Rune.ReplacementChar"/> value. 28/// Invalid Unicode symbols will be represented by <see cref="System.Text.Rune.ReplacementChar"/> 42/// Invalid Unicode symbols will be represented by <see cref="Rune.ReplacementChar"/> value. 48/// Invalid Unicode symbols will be represented by <see cref="System.Text.Rune.ReplacementChar"/> value. 67/// replaced by <see cref="System.Text.Rune.ReplacementChar"/> value. 233Current = new RunePosition(Rune.ReplacementChar, Current.StartIndex + Current.Length, 1, true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
40scalarValue = Rune.ReplacementChar.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
669/// Invalid sequences will be represented in the enumeration by <see cref="Rune.ReplacementChar"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilderRuneEnumerator.cs (1)
55_current = Rune.ReplacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringRuneEnumerator.cs (1)
39_current = Rune.ReplacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (1)
14/// perform <see cref="Rune.ReplacementChar"/> substitution instead" semantics. This type allows for devirtualization
System.Private.Uri (2)
System\IriHelper.cs (1)
155rune = Rune.ReplacementChar;
System\UriHelper.cs (1)
266r = Rune.ReplacementChar;
System.Text.Encodings.Web (4)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (2)
202scalarValue = Rune.ReplacementChar; // fallback char 312Debug.Assert(scalarValue == Rune.ReplacementChar); // DecodeFromUtfXX should've set replacement character on failure
System\Text\Encodings\Web\TextEncoder.cs (2)
345Debug.Assert(scalarValue == Rune.ReplacementChar); // DecodeFromUtf8 should've performed substitution 467Debug.Assert(scalarValue == Rune.ReplacementChar); // should be replacement char
System.Web.HttpUtility (2)
System\Web\Util\HttpEncoder.cs (2)
689chars[i] = (char)Rune.ReplacementChar.Value; 699chars[i] = (char)Rune.ReplacementChar.Value;