90 references to Value
aspire (1)
Utils\EmojiWidth.cs (1)
44if (!enumerator.MoveNext() && !HasDefaultEmojiPresentation(rune.Value))
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
183&& rune.Value switch
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\RuneExtensions.cs (1)
18return rune.Utf16SequenceLength == 1 && TryGetEscapeCharacter((char)rune.Value, out escapedChar);
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
AspNetCore\EmbeddedLanguages\AspNetCoreVirtualChar.cs (1)
28get => char.IsSurrogate(VirtualChar) ? Rune.ReplacementChar.Value : VirtualChar;
Microsoft.Net.Http.Headers (3)
ContentDispositionHeaderValue.cs (3)
662var value = (uint)rune.Value; 668else if (rune.Value <= 0x7FFu) 676else if (rune.Value <= 0xFFFFu)
Microsoft.TemplateEngine.Cli (1)
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\UnicodeCalculator.cs (1)
138return GetWidth(value.Value, version);
System.Private.CoreLib (41)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (3)
267return (char)rune.Value; 281result = (char)rune.Value; 2012result = (char)rune.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfo.cs (1)
198nuint offset = GetNumericGraphemeTableOffsetNoBoundsChecks((uint)rune.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewNumber.cs (1)
217DateTimeFormat.AppendChar(ref outputBuffer, (char)value.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
121valueToEncode = rune.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (4)
528return EndsWith((char)value.Value); 531UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar((uint)value.Value, out char highSurrogate, out char lowSurrogate); 1146return StartsWith((char)value.Value); 1149UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar((uint)value.Value, out char highSurrogate, out char lowSurrogate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (9)
1482return Replace((char)oldRune.Value, (char)newRune.Value); 1710return Split((char)separator.Value, count, options); 2708return Trim((char)trimRune.Value); 2711UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar((uint)trimRune.Value, out char highSurrogate, out char lowSurrogate); 2783return TrimStart((char)trimRune.Value); 2786UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar((uint)trimRune.Value, out char highSurrogate, out char lowSurrogate); 2850return TrimEnd((char)trimRune.Value); 2853UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar((uint)trimRune.Value, out char highSurrogate, out char lowSurrogate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (1)
57return Contains((char)value.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
785bytes[0] = (byte)value.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (2)
252while ((thisRune = GetNextRune()).Value != 0) 272while ((thisRune = GetNextRune()).Value != 0)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (3)
648if (value.Value <= byte.MaxValue) 665if (value.Value <= byte.MaxValue) 669bytes[0] = (byte)value.Value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (10)
297public int CompareTo(Rune other) => this.Value - other.Value; // values don't span entire 32-bit domain; won't integer overflow 815public override int GetHashCode() => Value; 1202if (value.Value <= 0x7FFu) 1213if (value.Value <= 0xFFFFu) 1303return CharUnicodeInfo.GetNumericValue(value.Value); 1318return (UnicodeCategory)(AsciiCharInfo[value.Value] & UnicodeCategoryMask); 1330return CharUnicodeInfo.GetUnicodeCategory(value.Value); 1419return (AsciiCharInfo[value.Value] & IsLetterOrDigitFlag) != 0; 1482return (AsciiCharInfo[value.Value] & IsWhiteSpaceFlag) != 0;
src\runtime\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)
91if (!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 452return _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)
689chars[i] = (char)Rune.ReplacementChar.Value; 699chars[i] = (char)Rune.ReplacementChar.Value;