4 writes to Value
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (4)
5410
Value
= str;
5846
Value
= Value.Slice(0, i + 1);
5872
Value
= result;
5899
Value
= result;
73 references to Value
System.Private.CoreLib (73)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (7)
2228
if (!HebrewNumber.IsDigit(str.
Value
[i]))
2240
state = HebrewNumber.ParseByChar(str.
Value
[i++], ref context);
2248
} while (i < str.
Value
.Length && (state != HebrewNumberParsingState.FoundEndOfHebrewNumber));
2300
Debug.Assert(str.Index < str.
Value
.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length");
2354
char nextCh = str.
Value
[nextCharIndex];
2360
((value.tokenString.Length == 1 && str.
Value
[str.Index] == value.tokenString[0]) ||
2361
Culture.CompareInfo.Compare(str.
Value
.Slice(str.Index, value.tokenString.Length), value.tokenString, CompareOptions.IgnoreCase) == 0))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (66)
411
if (target.Length > (str.
Value
.Length - str.Index))
416
if (str.CompareInfo.Compare(str.
Value
.Slice(str.Index, target.Length), target, CompareOptions.IgnoreCase) != 0)
423
if (nextCharIndex < str.
Value
.Length)
425
char nextCh = str.
Value
[nextCharIndex];
434
str.m_current = str.
Value
[str.Index];
573
char nextCh = str.
Value
[str.Index];
579
nextCh = str.
Value
[str.Index + whitespaceCount];
618
Trace($"Lex({Hex(str.
Value
)})\tpos:{str.Index}({Hex(str.m_current)}), {tokenType}, DS.{dps}");
648
char nextCh = str.
Value
[str.Index];
1177
char ch = str.
Value
[str.Index];
1184
ch = str.
Value
[i];
1233
if (str.
Value
.Slice(str.Index + 1).ContainsAnyExcept('\0'))
3354
ReadOnlySpan<char> span = str.
Value
.Slice(str.Index);
3455
ReadOnlySpan<char> span = str.
Value
.Slice(str.Index);
3556
ReadOnlySpan<char> span = str.
Value
.Slice(str.Index);
3623
ReadOnlySpan<char> span = str.
Value
.Slice(str.Index);
4092
if (!MatchAbbreviatedMonthName(ref str, dtfi, ref tempMonth, format.
Value
))
4100
if (!MatchMonthName(ref str, dtfi, ref tempMonth, format.
Value
))
4384
if (!TryParseQuoteString(format.
Value
, format.Index, ref enquotedString, out tokenLen))
4432
if (format.Index >= format.
Value
.Length - 1 || format.
Value
[format.Index + 1] == '%')
4434
result.SetBadFormatSpecifierFailure(format.
Value
);
4453
result.SetBadFormatSpecifierFailure(format.
Value
);
4667
if (str.Index < str.
Value
.Length - 1)
5390
internal int Length =>
Value
.Length;
5433
m_current =
Value
[Index];
5450
m_current =
Value
[Index];
5479
m_current =
Value
[Index];
5510
m_current =
Value
[Index];
5533
m_current =
Value
[Index];
5579
m_info.Compare(
Value
.Slice(Index, target.Length), target, CompareOptions.IgnoreCase) == 0;
5583
int valueRemaining =
Value
.Length - Index;
5586
if (matchLength > valueRemaining || m_info.Compare(
Value
.Slice(Index, matchLength), target, CompareOptions.IgnoreCase) != 0)
5601
if (thisPosition >=
Value
.Length - segmentLength)
5614
if (!char.IsWhiteSpace(
Value
[thisPosition + segmentLength]))
5618
if (m_info.CompareOptionIgnoreCase(
Value
.Slice(thisPosition, segmentLength), target.AsSpan(targetPosition, segmentLength)) != 0)
5629
while (thisPosition <
Value
.Length && char.IsWhiteSpace(
Value
[thisPosition]))
5647
if (thisPosition >
Value
.Length - segmentLength)
5651
if (m_info.CompareOptionIgnoreCase(
Value
.Slice(thisPosition, segmentLength), target.AsSpan(targetPosition, segmentLength)) != 0)
5661
if (nextCharIndex <
Value
.Length)
5663
if (char.IsLetter(
Value
[nextCharIndex]))
5680
if (++Index < Length &&
Value
.Slice(Index).StartsWith(str))
5698
if ((
Value
[Index] == ch) ||
5699
(ch == ' ' && IsSpaceReplacingChar(
Value
[Index])))
5748
char repeatChar =
Value
[Index];
5750
while ((pos < Length) && (
Value
[pos] == repeatChar))
5766
char.IsAsciiDigit(
Value
[Index]);
5774
return
Value
[Index];
5783
Debug.Assert(char.IsAsciiDigit(
Value
[Index]), "IsDigit(Value[Index])");
5784
return
Value
[Index] - '0';
5798
char ch =
Value
[Index + 1];
5829
m_current =
Value
[Index];
5842
while (i >= 0 && char.IsWhiteSpace(
Value
[i]))
5846
Value =
Value
.Slice(0, i + 1);
5858
char ch =
Value
[i];
5862
if (char.IsWhiteSpace(
Value
[i - 1]))
5865
while (i >= 1 && char.IsWhiteSpace(
Value
[i - 1]))
5871
Value
.Slice(0, i).CopyTo(result);
5886
char ch =
Value
[i];
5890
while ((i + 1) < Length && char.IsWhiteSpace(
Value
[i + 1]))
5896
Span<char> result = new char[
Value
.Length - i];
5898
Value
.Slice(i + 1).CopyTo(result.Slice(1));
5908
sub.s =
Value
;
5912
char ch =
Value
[Index + sub.length];
5962
m_current =
Value
[Index];