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