83 references to Value
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
87public int Value => SurrogateChar != 0 ? SurrogateChar : Rune.Value;
Microsoft.CodeAnalysis.CSharp.Features (9)
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
179if (ch.Span.Length == 2 && ch.Rune.Value != 0)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (2)
118characters.First().Rune.Value == '"') 123characters.Last().Rune.Value == '"')
ConvertToRawString\ConvertToRawStringHelpers.cs (5)
19if (characters.First().Rune.Value == '"' || 20characters.Last().Rune.Value == '"') 41characters[index].Rune is { Utf16SequenceLength: 1, Value: '\r' } && 42characters[index + 1].Rune is { Utf16SequenceLength: 1, Value: '\n' }; 112if (ch.Rune.Value == 0)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
183&& rune.Value switch
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\RuneExtensions.cs (1)
16=> TryGetEscapeCharacter(rune.Value, out escapedChar);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
87public int Value => SurrogateChar != 0 ? SurrogateChar : Rune.Value;
Microsoft.Net.Http.Headers (3)
ContentDispositionHeaderValue.cs (3)
663var value = (uint)rune.Value; 669else if (rune.Value <= 0x7FFu) 677else if (rune.Value <= 0xFFFFu)
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
248return (char)rune.Value; 262result = (char)rune.Value;
src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfo.cs (1)
171nuint offset = GetNumericGraphemeTableOffsetNoBoundsChecks((uint)rune.Value);
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewNumber.cs (1)
217DateTimeFormat.AppendChar(ref outputBuffer, (char)value.Value);
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
121valueToEncode = rune.Value;
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
784bytes[0] = (byte)value.Value;
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (2)
252while ((thisRune = GetNextRune()).Value != 0) 272while ((thisRune = GetNextRune()).Value != 0)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (4)
199while ((thisRune = GetNextRune()).Value != 0) 229ThrowLastCharRecursive(thisRune.Value); 249while ((thisRune = GetNextRune()).Value != 0) 259ThrowLastCharRecursive(thisRune.Value);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (3)
647if (value.Value <= byte.MaxValue) 664if (value.Value <= byte.MaxValue) 668bytes[0] = (byte)value.Value;
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (10)
295public int CompareTo(Rune other) => this.Value - other.Value; // values don't span entire 32-bit domain; won't integer overflow 783public override int GetHashCode() => Value; 1122if (value.Value <= 0x7FFu) 1133if (value.Value <= 0xFFFFu) 1223return CharUnicodeInfo.GetNumericValue(value.Value); 1238return (UnicodeCategory)(AsciiCharInfo[value.Value] & UnicodeCategoryMask); 1250return CharUnicodeInfo.GetUnicodeCategory(value.Value); 1339return (AsciiCharInfo[value.Value] & IsLetterOrDigitFlag) != 0; 1402return (AsciiCharInfo[value.Value] & IsWhiteSpaceFlag) != 0;
src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (1)
40scalarValue = Rune.ReplacementChar.Value;
System.Private.Uri (10)
System\IriHelper.cs (3)
42return ((rune.Value & 0xFFFF) < 0xFFFE) 43&& ((uint)(rune.Value - 0xE0000) >= (0xE1000 - 0xE0000)) 44&& (isQuery || rune.Value < 0xF0000);
System\PercentEncodingHelper.cs (1)
92if (!iriParsing || IriHelper.CheckIriUnicodeRange((uint)rune.Value, isQuery))
System\ValueStringBuilderExtensions.cs (6)
17if (rune.Value <= 0xFFFF) 19chars[pos] = (char)rune.Value; 24chars[pos] = (char)((rune.Value + ((0xD800u - 0x40u) << 10)) >> 10); 25chars[pos + 1] = (char)((rune.Value & 0x3FFu) + 0xDC00u); 38if (rune.Value <= 0xFFFF) 40Append((char)rune.Value);
System.Text.Encodings.Web (29)
System\Text\Encodings\Web\AsciiByteMap.cs (1)
38byte entry = Buffer[(uint)key.Value];
System\Text\Encodings\Web\DefaultHtmlEncoder.cs (10)
69if (value.Value == '<') 74else if (value.Value == '>') 79else if (value.Value == '&') 84else if (value.Value == '\"') 91return TryEncodeScalarAsHex(this, (uint)value.Value, destination); 135if (value.Value == '<') 140else if (value.Value == '>') 145else if (value.Value == '&') 150else if (value.Value == '\"') 157return TryEncodeScalarAsHex(this, (uint)value.Value, destination);
System\Text\Encodings\Web\DefaultJavaScriptEncoder.cs (6)
138HexConverter.ToBytesBuffer((byte)value.Value, destination, 4); 139HexConverter.ToBytesBuffer((byte)((uint)value.Value >> 8), destination, 2); 145UnicodeHelpers.GetUtf16SurrogatePairFromAstralScalarValue((uint)value.Value, out char highSurrogate, out char lowSurrogate); 189HexConverter.ToCharsBuffer((byte)value.Value, destination, 4); 190HexConverter.ToCharsBuffer((byte)((uint)value.Value >> 8), destination, 2); 196UnicodeHelpers.GetUtf16SurrogatePairFromAstralScalarValue((uint)value.Value, out char highSurrogate, out char lowSurrogate);
System\Text\Encodings\Web\DefaultUrlEncoder.cs (2)
144uint utf8lsb = (uint)UnicodeHelpers.GetUtf8RepresentationForScalarValue((uint)value.Value); 173uint utf8lsb = (uint)UnicodeHelpers.GetUtf8RepresentationForScalarValue((uint)value.Value);
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (3)
387UnicodeDebug.AssertIsBmpCodePoint((uint)scalarValue.Value); 388if (!_allowedBmpCodePoints.IsCharAllowed((char)scalarValue.Value)) { break; } // disallowed code point 470return _allowedBmpCodePoints.IsCodePointAllowed((uint)value.Value);
System\Text\Encodings\Web\TextEncoder.cs (7)
73uint utf8lsb = (uint)UnicodeHelpers.GetUtf8RepresentationForScalarValue((uint)nextScalarValue.Value); 349if (!WillEncode(scalarValue.Value)) 351uint utf8lsb = (uint)UnicodeHelpers.GetUtf8RepresentationForScalarValue((uint)scalarValue.Value); 368if (!TryEncodeUnicodeScalarUtf8((uint)scalarValue.Value, utf16ScratchBuffer, utf8Destination, out int bytesWrittenJustNow)) 471if (!WillEncode(scalarValue.Value)) 484if (!TryEncodeUnicodeScalar((uint)scalarValue.Value, destination, out int charsWrittenJustNow)) 566if (opStatus != OperationStatus.Done || WillEncode(scalarValue.Value))
System.Web.HttpUtility (2)
System\Web\Util\HttpEncoder.cs (2)
691chars[i] = (char)Rune.ReplacementChar.Value; 701chars[i] = (char)Rune.ReplacementChar.Value;
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
87public int Value => SurrogateChar != 0 ? SurrogateChar : Rune.Value;