49 references to ReplacementChar
GenerateDocumentationAndConfigFiles (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (5)
32/// cref="Rune.ReplacementChar"/>. The value of this character can be retrieved from 39/// cref="Rune"/>. If <see cref="Rune"/> is not <see cref="Rune.ReplacementChar"/>, this will be <c>0</c>. 59/// value will be <see cref="Rune.ReplacementChar"/>. 66return new VirtualChar(rune: Rune.ReplacementChar, surrogateChar, span); 71Contract.ThrowIfFalse(surrogateChar == 0 || rune == Rune.ReplacementChar,
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (5)
32/// cref="Rune.ReplacementChar"/>. The value of this character can be retrieved from 39/// cref="Rune"/>. If <see cref="Rune"/> is not <see cref="Rune.ReplacementChar"/>, this will be <c>0</c>. 59/// value will be <see cref="Rune.ReplacementChar"/>. 66return new VirtualChar(rune: Rune.ReplacementChar, surrogateChar, span); 71Contract.ThrowIfFalse(surrogateChar == 0 || rune == Rune.ReplacementChar,
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (2)
368/// Invalid sequences will be represented in the enumeration by <see cref="Rune.ReplacementChar"/>. 379/// Invalid sequences will be represented in the enumeration by <see cref="Rune.ReplacementChar"/>.
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.Utf8.cs (1)
20Debug.Assert(!Rune.IsWhiteSpace(Rune.ReplacementChar));
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
337r = Rune.ReplacementChar;
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\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
818value = Rune.ReplacementChar; 827value = Rune.ReplacementChar;
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
698value = Rune.ReplacementChar;
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (15)
308/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="charsConsumed"/> the length of the input buffer. 312/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="charsConsumed"/> the number of 319/// will contain the real scalar value if successfully decoded, or it will contain <see cref="ReplacementChar"/> if 371result = ReplacementChar; 377result = ReplacementChar; 392/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="bytesConsumed"/> the length of the input buffer. 396/// and outs via <paramref name="result"/> <see cref="ReplacementChar"/> and via <paramref name="bytesConsumed"/> the number of 403/// will contain the real scalar value if successfully decoded, or it will contain <see cref="ReplacementChar"/> if 555result = ReplacementChar; 562result = ReplacementChar; 612result = ReplacementChar; 622result = ReplacementChar; 698value = ReplacementChar; 737value = ReplacementChar; 952result = ReplacementChar;
src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
40scalarValue = Rune.ReplacementChar.Value;
src\libraries\System.Private.CoreLib\src\System\Text\StringRuneEnumerator.cs (1)
39_current = Rune.ReplacementChar;
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)
181rune = Rune.ReplacementChar;
System\UriHelper.cs (1)
268r = 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)
691chars[i] = (char)Rune.ReplacementChar.Value; 701chars[i] = (char)Rune.ReplacementChar.Value;
Test.Utilities (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (5)
32/// cref="Rune.ReplacementChar"/>. The value of this character can be retrieved from 39/// cref="Rune"/>. If <see cref="Rune"/> is not <see cref="Rune.ReplacementChar"/>, this will be <c>0</c>. 59/// value will be <see cref="Rune.ReplacementChar"/>. 66return new VirtualChar(rune: Rune.ReplacementChar, surrogateChar, span); 71Contract.ThrowIfFalse(surrogateChar == 0 || rune == Rune.ReplacementChar,