48 writes to Index
mscorlib (48)
system\globalization\datetimeparse.cs (48)
435
str.
Index
= nextCharIndex;
579
str.
Index
+= whitespaceCount;
721
str.
Index
= indexBeforeSeparator;
811
str.
Index
= indexBeforeSeparator;
887
str.
Index
= indexBeforeSeparator;
927
str.
Index
= indexBeforeSeparator;
991
str.
Index
= indexBeforeSeparator;
1108
str.
Index
= originalIndex;
1180
str.
Index
= str.len;
2757
str.
Index
--;
2789
str.
Index
--;
2806
str.
Index
--;
2908
str.
Index
--;
2915
str.
Index
= startingIndex;
2933
str.
Index
--;
2941
str.
Index
--;
3018
str.
Index
--;
3082
str.
Index
+= (maxMatchStrLen - 1);
3146
str.
Index
+= (maxMatchStrLen - 1);
3178
str.
Index
+= maxMatchStrLen - 1;
3211
str.
Index
+= maxMatchStrLen - 1;
3233
str.
Index
+= (searchStr.Length - 1);
3239
str.
Index
+= (searchStr.Length - 1);
3272
str.
Index
+= (searchStr.Length - 1);
3281
str.
Index
+= (searchStr.Length - 1);
3286
str.
Index
--; // Undo the GetNext call.
3508
str.
Index
--;
3751
str.
Index
++;
3756
str.
Index
--;
3771
str.
Index
--; // Put the character back for the parser
3815
format.
Index
+= tokenLen - 1;
3917
format.
Index
+= (GMTName.Length - 1);
4372
Index
= -1;
4403
Index
++;
4418
Index
+= count;
4448
while (++
Index
< len)
4472
Index
= start; // To include the first digit.
4487
Index
= save;
4495
while (++
Index
< len) {
4624
if (++
Index
>= len) {
4636
Index
+= (str.Length - 1);
4643
if (++
Index
>= len) {
4650
Index
--;
4696
Index
= pos - 1;
4702
if (++
Index
>= len) {
4740
Index
++;
4761
while (++
Index
< len)
4875
Index
= sub.index + sub.length;
74 references to Index
mscorlib (74)
system\globalization\datetimeformatinfo.cs (6)
2706
int i = str.
Index
;
2736
str.Advance(i - str.
Index
);
2774
Contract.Assert(str.
Index
< str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length");
2798
int remaining = str.len - str.
Index
;
2813
if (String.Compare(str.Value, str.
Index
, value.tokenString, 0, value.tokenString.Length, this.Culture, CompareOptions.IgnoreCase)==0) {
2817
if ((nextCharIndex = str.
Index
+ value.tokenString.Length) < str.len) {
system\globalization\datetimeparse.cs (68)
418
if (length > (str.Value.Length - str.
Index
)) {
422
if (str.CompareInfo.Compare(str.Value, str.
Index
, length,
427
int nextCharIndex = str.
Index
+ target.Length;
436
if (str.
Index
< str.len) {
437
str.m_current = str.Value[str.
Index
];
570
if ((str.
Index
< str.len - 1)) {
571
char nextCh = str.Value[str.
Index
];
574
while (Char.IsWhiteSpace(nextCh) && str.
Index
+ whitespaceCount < str.len - 1) {
576
nextCh = str.Value[str.
Index
+ whitespaceCount];
650
if ((str.
Index
< str.len - 1)) {
651
char nextCh = str.Value[str.
Index
];
662
if ((str.
Index
< str.len - 1)) {
1084
result.SetFailure(ParseFailureKind.FormatWithParameter, "Format_UnknowDateTimeWord", str.
Index
);
1100
Int32 originalIndex = str.
Index
;
1131
Char ch = str.Value[str.
Index
];
1173
for (int i = str.
Index
; i < str.len; i++) {
2904
int startingIndex = str.
Index
;
3811
if (!TryParseQuoteString(format.Value, format.
Index
, enquotedString, out tokenLen)) {
3853
if (format.
Index
>= format.Value.Length - 1 || format.Value[format.
Index
+ 1] == '%') {
4077
if (str.
Index
< str.Value.Length - 1) {
4404
if (
Index
< len) {
4405
m_current = Value[
Index
];
4413
return
Index
< len ? false : true;
4417
Contract.Assert(
Index
+ count <= len, "__DTString::Advance: Index + count <= len");
4419
if (
Index
< len) {
4420
m_current = Value[
Index
];
4431
if (
Index
>= len) {
4443
int start =
Index
;
4450
m_current = Value[
Index
];
4458
if (
Index
- start > DateTimeParse.MaxDateTimeNumberDigits) {
4461
} else if (
Index
- start < 3) {
4469
int save =
Index
;
4473
m_current = Value[
Index
];
4496
m_current = Value[
Index
];
4510
indexBeforeSeparator =
Index
;
4533
return MatchSpecifiedWord(target, target.Length +
Index
);
4537
int count = endIndex -
Index
;
4543
if (
Index
+ count > len) {
4547
return (m_info.Compare(Value,
Index
, count, target, 0, count, CompareOptions.IgnoreCase)==0);
4553
int valueRemaining = Value.Length -
Index
;
4556
if (matchLength > valueRemaining || m_info.Compare(Value,
Index
, matchLength, target, 0, matchLength, CompareOptions.IgnoreCase) !=0) {
4559
int thisPosition =
Index
; // Where we are in this string
4607
int nextCharIndex =
Index
+ matchLength;
4628
if (str.Length > (Value.Length -
Index
)) {
4632
if (m_info.Compare(Value,
Index
, str.Length, str, 0, str.Length, CompareOptions.Ordinal)==0) {
4646
if (Value[
Index
] == ch) {
4687
char repeatChar = Value[
Index
];
4688
int pos =
Index
+ 1;
4692
int repeatCount = (pos -
Index
);
4705
return (DateTimeParse.IsDigit(Value[
Index
]));
4712
Contract.Assert(
Index
>= 0 &&
Index
< len, "Index >= 0 && Index < len");
4713
return (Value[
Index
]);
4720
Contract.Assert(
Index
>= 0 &&
Index
< len, "Index >= 0 && Index < len");
4721
Contract.Assert(DateTimeParse.IsDigit(Value[
Index
]), "IsDigit(Value[Index])");
4722
return (Value[
Index
] - '0');
4734
while (
Index
+1 < len)
4736
char ch = Value[
Index
+1];
4752
if (
Index
>= len) {
4763
m_current = Value[
Index
];
4825
sub.index =
Index
;
4827
while (
Index
+ sub.length < len) {
4829
Char ch = Value[
Index
+ sub.length];
4873
Contract.Assert(sub.index ==
Index
, "sub.index == Index");
4876
if (
Index
< len) {
4877
m_current = Value[
Index
];