2527 references to
ComSvcConfig (1)
Options.cs (1)
390
if ((methods[0] != '{') && (methods
[
methods.Length - 1] != '}'))
mscorlib (431)
system\__filters.cs (2)
124
if (str.Length > 0 && str
[
str.Length - 1] == '*') {
149
if (str.Length > 0 && str
[
str.Length - 1] == '*') {
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (2)
39
if (currentPos == overrides.Length || overrides
[
currentPos] == ';')
67
else if (overrides
[
currentPos] == '=')
system\appdomain.cs (1)
2289
if((current
[
current.Length-1] != Path.PathSeparator) &&
system\AppDomainSetup.cs (11)
386
char c = path
[
i];
416
( (path
[
colon] == '/') || (path
[
colon] == '\\') ) &&
417
( (path
[
colon+1] == '/') || (path
[
colon+1] == '\\') ))
449
(index < urlLen) && ((appBase
[
index] == '/') || (appBase
[
index] == '\\'));
453
for (; (index < urlLen) && (appBase
[
index] != '/') && (appBase
[
index] != '\\');
1413
bool appendSlash = !( (appBase
[
appBase.Length-1] == '/') ||
1414
(appBase
[
appBase.Length-1] == '\\') );
system\boolean.cs (4)
210
if (!Char.IsWhiteSpace(value
[
start]) && value
[
start] != nullChar) {
217
if (!Char.IsWhiteSpace(value
[
end]) && value
[
end] != nullChar) {
system\char.cs (23)
523
char c = s
[
index];
539
char c = s
[
index];
554
char c = s
[
index];
573
char c = s
[
index];
588
char c = s
[
index];
632
char c = s
[
index];
658
char c = s
[
index];
703
char c = s
[
index];
726
return (IsSurrogate(s
[
index]));
760
if (IsLatin1(s
[
index])) {
761
return (CheckSymbol(GetLatin1UnicodeCategory(s
[
index])));
775
char c = s
[
index];
795
if (IsLatin1(s
[
index])) {
796
return IsWhiteSpaceLatin1(s
[
index]);
818
if (IsLatin1(s
[
index])) {
819
return (GetLatin1UnicodeCategory(s
[
index]));
858
return (IsHighSurrogate(s
[
index]));
878
return (IsLowSurrogate(s
[
index]));
894
return (IsSurrogatePair(s
[
index], s
[
index+1]));
976
int temp1 = (int)s
[
index] - CharUnicodeInfo.HIGH_SURROGATE_START;
982
int temp2 = (int)s
[
index+1] - CharUnicodeInfo.LOW_SURROGATE_START;
999
return ((int)s
[
index]);
system\charenumerator.cs (1)
42
currentElement = str
[
index];
system\diagnostics\eventing\eventsource.cs (13)
6797
if (eventMessage
[
i] == '%')
6806
(eventMessage
[
i] == '{' && eventMessage
[
i + 1] == '{' || eventMessage
[
i] == '}' && eventMessage
[
i + 1] == '}'))
6810
stringBuilder.Append(eventMessage
[
i]);
6814
else if (eventMessage
[
i] == '{')
6819
while (i < eventMessage.Length && Char.IsDigit(eventMessage
[
i]))
6821
argNum = argNum * 10 + eventMessage
[
i] - '0';
6824
if (i < eventMessage.Length && eventMessage
[
i] == '}')
6833
if (i < eventMessage.Length && eventMessage
[
i] == '!')
6845
else if ((chIdx = "&<>'\"\r\n\t".IndexOf(eventMessage
[
i])) >= 0)
6856
update(eventMessage
[
i], escapes[chIdx]);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (3)
788
if (value
[
i] != ' ') // Skp spaces between bytes.
792
metaData.Add((byte)(HexDigit(value
[
i]) * 16 + HexDigit(value
[
i + 1])));
system\globalization\calendardata.cs (1)
426
char c = s
[
i];
system\globalization\charunicodeinfo.cs (6)
154
int temp1 = (int)s
[
index] - HIGH_SURROGATE_START;
156
int temp2 = (int)s
[
index+1] - LOW_SURROGATE_START;
163
return ((int)s
[
index]);
194
int temp1 = (int)s
[
index] - HIGH_SURROGATE_START;
196
int temp2 = (int)s
[
index+1] - LOW_SURROGATE_START;
204
return ((int)s
[
index]);
system\globalization\culturedata.cs (24)
2072
if (time
[
j] == '\'')
2080
if (time
[
j] == '\\')
2092
switch (time
[
j])
2101
(time
[
iLastToken + 1] != '\'') &&
2102
(time
[
j - 1] != '\''))
2137
switch (time
[
index])
2144
if (time
[
index] == ' ')
2827
switch (str
[
i])
2843
result.Append(str
[
i]);
2849
result.Append(str
[
i]);
2887
if (str
[
i] == '\'')
2893
if (i + 1 < str.Length && str
[
i + 1] == '\'')
2916
else if (str
[
i] == '\\')
2930
result.Append(str
[
i]);
2991
char cTimePart = format
[
index];
2996
} while (index < format.Length && format
[
index] == cTimePart);
3023
if (!inQuote && timeParts.IndexOf(format
[
i]) != -1)
3027
switch (format
[
i])
3033
switch (format
[
i])
3253
char ch = testString
[
ich];
3278
if (win32Str
[
win32Str.Length - 1] == '0')
3296
if (win32Str
[
i] < '1' || win32Str
[
i] > '9')
3299
values[j] = (int)(win32Str
[
i] - '0');
system\globalization\cultureinfo.cs (2)
640
if('-' == name
[
idx]) {
673
char c = cultureName
[
i];
system\globalization\datetimeformat.cs (13)
218
while ((index < len) && (format
[
index] == patternChar))
306
char quoteChar = format
[
pos++]; // Get the character used to quote the following string.
311
char ch = format
[
pos++];
324
result.Append(format
[
pos++]);
362
return ((int)format
[
pos+1]);
386
for (i = index - 1; i >= 0 && format
[
i] != patternToMatch; i--) { /*Do nothing here */ };
390
while (--i >= 0 && format
[
i] == patternToMatch) {
409
for (i = index + tokenLen; i < format.Length && format
[
i] != patternToMatch; i++) { /* Do nothing here */ };
414
while (++i < format.Length && format
[
i] == patternToMatch) {
451
char ch = format
[
i];
610
((i + tokenLen < format.Length && format
[
i + tokenLen] == DateTimeFormatInfoScanner.CJKYearSuff[0]) ||
611
(i + tokenLen < format.Length - 1 && format
[
i + tokenLen] == '\'' && format
[
i + tokenLen + 1] == DateTimeFormatInfoScanner.CJKYearSuff[0])))
system\globalization\datetimeformatinfo.cs (7)
1263
switch (LongTimePattern
[
i]) {
1271
if (inQuote && (quote == LongTimePattern
[
i])) {
1275
quote = LongTimePattern
[
i];
2707
if (!HebrewNumber.IsDigit(str.Value
[
i])) {
2717
state = HebrewNumber.ParseByChar(str.Value
[
i++], ref context);
2819
char nextCh = str.Value
[
nextCharIndex];
2896
if (Char.IsWhiteSpace(str[0]) || Char.IsWhiteSpace(str
[
str.Length - 1])) {
system\globalization\datetimeformatinfoscanner.cs (8)
171
char ch = pattern
[
currentIndex];
178
ch = pattern
[
currentIndex];
245
if (str
[
str.Length - 1] == '.')
295
char ch = pattern
[
index];
313
dateWord.Append(pattern
[
index]);
345
while (++index < pattern.Length && pattern
[
index] == ch) {
430
char ch = pattern
[
i];
443
if (i < pattern.Length && pattern
[
i] == '\'')
system\globalization\datetimeparse.cs (50)
430
char nextCh = str.Value
[
nextCharIndex];
437
str.m_current = str.Value
[
str.Index];
571
char nextCh = str.Value
[
str.Index];
576
nextCh = str.Value
[
str.Index + whitespaceCount];
651
char nextCh = str.Value
[
str.Index];
1131
Char ch = str.Value
[
str.Index];
1136
ch = str.Value
[
i];
1174
if (str.Value
[
i] != '\0') {
1211
char ch = datePattern
[
i];
1232
for(; i+1 < datePattern.Length && datePattern
[
i+1] == 'y'; i++)
1243
for(; i+1 < datePattern.Length && datePattern
[
i+1] == 'M'; i++)
1255
for(; i+1 < datePattern.Length && datePattern
[
i+1] == 'd'; i++)
1308
char ch = pattern
[
i];
1329
for(; i+1 < pattern.Length && pattern
[
i+1] == 'y'; i++)
1339
for(; i+1 < pattern.Length && pattern
[
i+1] == 'M'; i++)
1374
char ch = pattern
[
i];
1394
for(; i+1 < pattern.Length && pattern
[
i+1] == 'd'; i++)
1414
for(; i+1 < pattern.Length && pattern
[
i+1] == 'M'; i++)
3823
if (quotedStr
[
i] == ' ' && parseInfo.fAllowInnerWhite) {
3825
} else if (!str.Match(quotedStr
[
i])) {
3853
if (format.Index >= format.Value.Length - 1 || format.Value
[
format.Index + 1] == '%') {
3948
char quoteChar = format
[
pos++]; // Get the character used to quote the following string.
3952
char ch = format
[
pos++];
3964
result.Append(format
[
pos++]);
4405
m_current = Value
[
Index];
4420
m_current = Value
[
Index];
4450
m_current = Value
[
Index];
4473
m_current = Value
[
Index];
4496
m_current = Value
[
Index];
4575
if (!Char.IsWhiteSpace(Value
[
thisPosition + segmentLength])) {
4589
while (thisPosition < Value.Length && Char.IsWhiteSpace(Value
[
thisPosition])) {
4609
if (Char.IsLetter(Value
[
nextCharIndex])) {
4646
if (Value
[
Index] == ch) {
4687
char repeatChar = Value
[
Index];
4689
while ((pos < len) && (Value
[
pos] == repeatChar)) {
4705
return (DateTimeParse.IsDigit(Value
[
Index]));
4713
return (Value
[
Index]);
4721
Contract.Assert(DateTimeParse.IsDigit(Value
[
Index]), "IsDigit(Value[Index])");
4722
return (Value
[
Index] - '0');
4736
char ch = Value
[
Index+1];
4763
m_current = Value
[
Index];
4775
while (i >= 0 && Char.IsWhiteSpace(Value
[
i])) {
4789
char ch = Value
[
i];
4792
if (Char.IsWhiteSpace(Value
[
i-1])) {
4794
while (i >= 1 && Char.IsWhiteSpace(Value
[
i-1])) {
4810
char ch = Value
[
i];
4813
while ((i + 1) < len && Char.IsWhiteSpace(Value
[
i+1])) {
4829
Char ch = Value
[
Index + sub.length];
4877
m_current = Value
[
Index];
4899
return s
[
index + relativeIndex];
system\globalization\idnmapping.cs (26)
134
if (unicode
[
unicode.Length - 1] <= 0x1f)
142
bool bHasLastDot = (unicode.Length > 0) && IsDot(unicode
[
unicode.Length - 1]);
147
if ((!bHasLastDot) && unicode.Length > 0 && IsDot(unicode
[
unicode.Length - 1]))
173
if (unicode
[
unicode.Length - 1] == 0)
242
if (count > 0 && ascii
[
index + count - 1] == (char)0)
351
if (unicode
[
i] <= 0x1f)
359
if (bCheckAscii && unicode
[
i] >= 0x7f)
363
if (IsDot(unicode
[
i]))
377
ValidateStd3(unicode
[
i-1], true);
387
ValidateStd3(unicode
[
i], (i == iLastDot + 1));
397
if (unicode.Length > M_defaultNameLimit - (IsDot(unicode
[
unicode.Length-1])? 0 : 1))
400
M_defaultNameLimit - (IsDot(unicode
[
unicode.Length-1]) ? 0 : 1)),
404
if (bUseStd3 && !IsDot(unicode
[
unicode.Length-1]))
405
ValidateStd3(unicode
[
unicode.Length-1], true);
651
if (basic(unicode
[
basicCount]))
653
output.Append(encode_basic(unicode
[
basicCount]));
774
if (output.Length > M_defaultNameLimit - (IsDot(unicode
[
unicode.Length-1]) ? 0 : 1))
777
M_defaultNameLimit - (IsDot(unicode
[
unicode.Length-1]) ? 0 : 1)),
816
if (ascii.Length > M_defaultNameLimit - (IsDot(ascii
[
ascii.Length-1]) ? 0 : 1))
819
M_defaultNameLimit - (IsDot(ascii
[
ascii.Length-1]) ? 0 : 1)), "ascii");
901
if (ascii
[
copyAscii] > 0x7f)
906
output.Append((char)(ascii
[
copyAscii] >= 'A' && ascii
[
copyAscii] <='Z' ?
907
ascii
[
copyAscii] - 'A' + 'a' :
908
ascii
[
copyAscii]));
945
int digit = decode_digit(ascii
[
asciiIndex++]);
system\globalization\textinfo.cs (6)
752
} else if (str
[
i] == '\'') {
806
result.Append(input
[
inputIndex++]);
807
result.Append(input
[
inputIndex]);
810
result.Append(input
[
inputIndex]);
826
switch (input
[
inputIndex]) {
852
result.Append( this.ToUpper(input
[
inputIndex]) );
system\globalization\timespanformat.cs (5)
168
char ch = format
[
i];
371
switch (format
[
i]) {
374
if (inQuote && (quote == format
[
i])) {
388
quote = format
[
i];
446
sb.Append(format
[
i]);
system\globalization\timespanparse.cs (4)
239
return m_value
[
m_pos];
1192
char ch = format
[
i];
1372
ch = pos < len? str
[
pos]: (char) 0;
1378
char ch = str
[
i];
system\guid.cs (6)
531
if(guidString.Length <= numStart+numLen+1 || guidString
[
numStart+numLen+1] != '{') {
589
if(numStart+numLen+1 >= guidString.Length || guidString
[
numStart+numLen+1] != '}') {
616
char ch = guidString
[
i];
871
curChar = str
[
i];
884
if(str.Length > i+1 && str
[
i] == '0' && (Char.ToLower(str
[
i+1], CultureInfo.InvariantCulture) == 'x'))
system\io\__error.cs (1)
114
if (Path.IsDirectorySeparator(path
[
path.Length - 1]))
system\io\directory.cs (3)
223
if (length >= 2 && Path.IsDirectorySeparator(fullPath
[
length - 1]))
261
while (i > lengthRoot && fullPath
[
i] != Path.DirectorySeparatorChar && fullPath
[
i] != Path.AltDirectorySeparatorChar) i--;
system\io\file.cs (1)
430
if (path.Length > 0 && Path.IsDirectorySeparator(path
[
path.Length - 1]))
system\io\filesystemenumerable.cs (2)
619
char lastChar = fullPathMod
[
fullPathMod.Length - 1];
641
char lastChar = tempStr
[
tempStr.Length - 1];
system\io\filesysteminfo.cs (1)
128
char ch = FullPath
[
i];
system\io\isolatedstorage\isolatedstorage.cs (2)
325
if (!Char.IsLetter(s
[
i]) && !Char.IsDigit(s
[
i]))
system\io\isolatedstorage\isolatedstoragefile.cs (5)
1105
if (length >= 2 && fullPath
[
length - 1] == SeparatorExternal)
1112
while (i < length && fullPath
[
i] != SeparatorExternal)
1637
if (dataDir
[
dataDir.Length-1] != '\\')
2422
char lastChar = path
[
path.Length-1];
2436
(fullPath
[
fullPath.Length - 1] != lastChar))
system\io\longpath.cs (5)
152
while (i > root && tempPath[--i] != Path.DirectorySeparatorChar && tempPath
[
i] != Path.AltDirectorySeparatorChar);
297
if (path.Length > 0 && Path.IsDirectorySeparator(path
[
path.Length - 1])) {
476
if (length >= 2 && Path.IsDirectorySeparator(fullPath
[
length - 1]))
506
while (i > lengthRoot && fullPath
[
i] != Path.DirectorySeparatorChar && fullPath
[
i] != Path.AltDirectorySeparatorChar) i--;
system\io\path.cs (24)
120
char ch = path
[
i];
192
while (pos < tempPath.Length && (tempPath
[
pos] != '?' && tempPath
[
pos] != '*'))
227
while (i > root && path[--i] != DirectorySeparatorChar && path
[
i] != AltDirectorySeparatorChar);
269
while (i < length && ((path
[
i] != DirectorySeparatorChar && path
[
i] != AltDirectorySeparatorChar) || --n > 0)) i++;
307
char ch = path
[
i];
571
char currentChar = path
[
index];
598
if (path
[
start] != '.')
609
if (path
[
start + 1] == '.') {
613
if (path
[
i] != '.')
639
(path
[
index + 1] == DirectorySeparatorChar || path
[
index + 1] == AltDirectorySeparatorChar))
698
char driveLetter = (index > 0) ? path
[
index-1] : ' ';
729
newBuffer.Append(path
[
lastSigChar + 1 + i]);
755
if (path
[
start] != '.')
765
if (path
[
start + 1] == '.') {
769
if (path
[
i] != '.')
1013
char ch = path
[
i];
1168
char ch = path
[
i];
1298
char ch = path1
[
path1.Length - 1];
1380
if ((searchPattern
[
index+2] == DirectorySeparatorChar)
1381
|| (searchPattern
[
index+2] == AltDirectorySeparatorChar))
1410
char ch = path1
[
i - 1];
system\io\pathhelper.cs (1)
363
if (m_arrayPtr[i] != compareTo
[
i]) {
system\io\pathinternal.cs (17)
56
if ((path.Length > startIndex && path
[
startIndex] == Path.VolumeSeparatorChar)
58
|| (path.Length >= startIndex + 2 && path
[
startIndex + 1] == Path.VolumeSeparatorChar && !IsValidDriveChar(path
[
startIndex]))
80
if (char.ToUpperInvariant(builder[i]) != char.ToUpperInvariant(value
[
i])) return false;
85
if (builder[i] != value
[
i]) return false;
126
if (IsDirectorySeparator(fullPath
[
i]))
366
currentChar = path
[
i];
448
if (value
[
i] != source[i]) return false;
540
while (startIndex < path.Length && path
[
startIndex] == ' ') startIndex++;
542
if (startIndex > 0 && (startIndex < path.Length && IsDirectorySeparator(path
[
startIndex]))
543
|| (startIndex + 1 < path.Length && path
[
startIndex + 1] == Path.VolumeSeparatorChar && IsValidDriveChar(path
[
startIndex])))
600
current = path
[
i];
604
|| (i > 0 && i + 1 < path.Length && IsDirectorySeparator(path
[
i + 1]))))
616
if (IsDirectorySeparator(path
[
start]))
624
current = path
[
i];
630
if (i + 1 < path.Length && IsDirectorySeparator(path
[
i + 1]))
system\io\stringreader.cs (4)
67
return _s
[
_pos];
77
return _s
[
_pos++];
131
char ch = _s
[
i];
135
if (ch == '\r' && _pos < _length && _s
[
_pos] == '\n') _pos++;
system\number.cs (1)
1040
if (s
[
i] != '\0') {
system\reflection\__filters.cs (2)
41
if (str.Length > 0 && str
[
str.Length - 1] == '*') {
61
if (str.Length > 0 && str
[
str.Length - 1] == '*') {
system\reflection\assembly.cs (4)
2456
((codebase
[
j+1] == '/') || (codebase
[
j+1] == '\\')) &&
2457
((codebase
[
j+2] == '/') || (codebase
[
j+2] == '\\')) )
system\reflection\emit\modulebuilder.cs (1)
920
for (int j = i - 1; j >= 0 && className
[
j] == '\\'; j--)
system\resources\__fastresourcecomparer.cs (3)
50
hash = ((hash << 5) + hash) ^ key
[
i];
104
r = a
[
i++] - b;
136
r = aCh - b
[
i++];
system\resources\resourcewriter.cs (1)
461
bw.Write("PAD"
[
i % 3]);
system\runtime\remoting\configuration.cs (3)
728
if (typeAssem
[
index] == '[') {
731
else if (typeAssem
[
index] == ']') {
1345
if (svc.AssemblyName
[
asmName.Length] == ',')
system\runtime\remoting\identity.cs (1)
115
if (uri
[
appName.Length + 1] == '/')
system\runtime\remoting\remotingconfigparser.cs (1)
1813
lastChar = time
[
time.Length - 1];
system\runtime\remoting\soap.cs (15)
444
if ((soapAction[0] == '"') && (soapAction
[
soapAction.Length - 1] == '"'))
504
if ((soapAction[0] == '"') && (soapAction
[
soapAction.Length - 1] == '"'))
672
if (value
[
i] == ' ')
674
else if (value
[
i] == '=')
676
else if (value
[
i] == ',')
680
sb.Append(value
[
i]);
693
if (value
[
i] == '%' && (value.Length-i >= 3))
695
if (value
[
i+1] == '2' && value
[
i+2] == '0')
700
else if (value
[
i+1] == '3' && value
[
i+2] == 'D')
705
else if (value
[
i+1] == '2' && value
[
i+2] == 'C')
712
sb.Append(value
[
i]);
715
sb.Append(value
[
i]);
system\runtime\remoting\soapinteroptypes.cs (6)
29
if (!(value
[
i] == ' '|| value
[
i] == '\n' || value
[
i] == '\r'))
30
sb.Append(value
[
i]);
43
sb.Append(value
[
i]);
1680
if (Char.IsWhiteSpace(value[0]) || Char.IsWhiteSpace(value
[
value.Length - 1]))
system\security\cryptography\utils.cs (3)
633
if (Char.IsWhiteSpace(inputBuffer
[
inputOffset + i])) iCount++;
637
if (!Char.IsWhiteSpace(inputBuffer
[
inputOffset + i]))
638
output[iCount++] = inputBuffer
[
inputOffset + i];
system\security\permissions\fileiopermission.cs (1)
593
currentChar = path
[
i];
system\security\permissiontoken.cs (3)
84
accumulator = (accumulator << 7) ^ str
[
i] ^ (accumulator >> 25);
124
if (className
[
i] == 'm' || className
[
i] == 'M') {
system\security\policy\applicationdirectorymembershipcondition.cs (1)
69
if (appDir
[
appDir.Length-1] == '/')
system\security\policy\netcodegroup.cs (5)
193
if (!(IsAsciiLetterOrDigit(scheme
[
i]) || (scheme
[
i] == '+') || (scheme
[
i] == '-') || (scheme
[
i] == '.')))
468
sb.Append(str, start, idx - start).Append('\\').Append(str
[
idx]);
system\security\policy\strongname.cs (1)
118
if (mcName.Length > 0 && mcName
[
mcName.Length-1] == '*' && mcName.Length - 1 <= asmName.Length)
system\security\securitydocument.cs (2)
110
m_data[position+(2*i)] = (byte)(str
[
i] >> 8);
111
m_data[position+(2*i)+1] = (byte)(str
[
i] & 0x00FF);
system\security\securityelement.cs (2)
547
sb.Append( GetEscapeSequence( str
[
index] ) );
579
return str
[
index].ToString();
system\security\util\hex.cs (3)
105
if (length >=3 && hexString
[
i + 2] == ' ')
121
rawdigit = ConvertHexDigit(hexString
[
i]);
122
digit = ConvertHexDigit(hexString
[
i+1]);
system\security\util\sitestring.cs (1)
109
char c = str
[
i];
system\security\util\stringexpressionset.cs (4)
602
else if (left.Length - right.Length == 1 && left
[
left.Length-1] == m_directorySeparator)
606
else if (right
[
right.Length-1] == m_directorySeparator)
611
else if (left
[
right.Length] == m_directorySeparator)
660
return longString
[
shortString.Length] == m_directorySeparator;
system\security\util\tokenizer.cs (5)
429
i = (int)(_inString
[
_inIndex++]);
437
i = _inNestedString
[
_inNestedIndex++];
450
i = (int)(_inString
[
_inIndex++]);
659
hash = (hash << 3) ^ (uint)str
[
i] ^ (hash >> 29);
692
if (a[i] != str
[
i])
system\security\util\urlstring.cs (22)
154
if (url
[
index+1] == 'u' || url
[
index+1] == 'U')
163
char c = (char)(Hex.ConvertHexDigit( url
[
index+2] ) << 12 |
164
Hex.ConvertHexDigit( url
[
index+3] ) << 8 |
165
Hex.ConvertHexDigit( url
[
index+4] ) << 4 |
166
Hex.ConvertHexDigit( url
[
index+5] ));
186
char c = (char)(Hex.ConvertHexDigit( url
[
index+1] ) << 4 | Hex.ConvertHexDigit( url
[
index+2] ));
234
else if (url
[
index+1] != '\\')
237
url
[
index+1] == '/' &&
238
url
[
index+2] == '/')
244
char c = m_protocol
[
i];
313
if (portIndex != -1 && temp
[
portIndex] == ':')
316
if ( temp
[
portIndex+1] >= '0' && temp
[
portIndex+1] <= '9' )
402
while (url
[
curCmpIdx] == '/')
488
temp
[
index-1] != ':' &&
489
temp
[
index-1] != '|') ||
533
char c = localSite
[
i];
561
if (localSite
[
localSite.Length-1] == '*')
809
if (intermediateDirectory
[
i-1] == '\\')
1186
directory
[
index] == '/')
system\security\util\xmlutil.cs (9)
270
if (className
[
classNameStart] == 'R')
302
if (className
[
classNameStart] == 'R')
321
if (className
[
classNameStart] == 'E')
328
else if (className
[
classNameStart] == 'U')
348
if (className
[
classNameStart] == 'S')
355
else if (className
[
classNameStart] == 'Z')
543
if (className
[
classNameStart] == 'A')
563
if (className
[
classNameStart] == 'H')
570
else if (className
[
classNameStart] == 'S')
system\string.cs (8)
802
if(!Char.IsWhiteSpace(value
[
i])) return false;
2255
if (this
[
thisLen - 1] == value)
2754
if (!Char.IsWhiteSpace(this
[
start]) && !IsBOMWhitespace(this
[
start])) break;
2760
if (!Char.IsWhiteSpace(this
[
end]) && !IsBOMWhitespace(this
[
start])) break;
2779
char ch = this
[
start];
2792
char ch = this
[
end];
system\text\decoderreplacementfallback.cs (1)
165
return strDefault
[
fallbackIndex];
system\text\encoderreplacementfallback.cs (3)
134
char.IsLowSurrogate(strDefault
[
fallbackIndex+1]))
135
ThrowLastCharRecursive(Char.ConvertToUtf32(charUnknown, strDefault
[
fallbackIndex+1]));
198
return strDefault
[
fallbackIndex];
system\text\stringbuilder.cs (15)
1342
ch = format
[
pos];
1347
if (pos < len && format
[
pos] == '}') // Treat as escape character for }}
1355
if (pos < len && format
[
pos] == '{') // Treat as escape character for {{
1369
if (pos == len || (ch = format
[
pos]) < '0' || ch > '9') FormatError();
1375
ch = format
[
pos];
1378
while (pos < len && (ch = format
[
pos]) == ' ') pos++;
1383
while (pos < len && format
[
pos] == ' ') pos++;
1386
ch = format
[
pos];
1391
ch = format
[
pos];
1398
ch = format
[
pos];
1402
while (pos < len && (ch = format
[
pos]) == ' ') pos++;
1411
ch = format
[
pos];
1415
if (pos < len && format
[
pos] == '{') // Treat as escape character for {{
1422
if (pos < len && format
[
pos] == '}') // Treat as escape character for }}
1800
if (value
[
i] != chunk.m_ChunkChars[indexInChunk])
system\text\utf7encoding.cs (3)
71
for (int i = 0; i < 64; i++) base64Bytes[i] = (byte)base64Chars
[
i];
79
directEncode[directChars
[
i]] = true;
87
directEncode[optionalChars
[
i]] = true;
system\timezoneinfo.cs (17)
3739
VerifyIsEscapableCharacter(m_serializedText
[
i]);
3743
switch (m_serializedText
[
i]) {
3814
VerifyIsEscapableCharacter(m_serializedText
[
i]);
3815
token.Append(m_serializedText
[
i]);
3819
switch (m_serializedText
[
i]) {
3857
token.Append(m_serializedText
[
i]);
3977
if (m_serializedText
[
m_currentTokenStartIndex] == sep) {
3982
if (m_serializedText
[
m_currentTokenStartIndex] != lhs) {
4000
if ((m_serializedText
[
m_currentTokenStartIndex] >= '0' && m_serializedText
[
m_currentTokenStartIndex] <= '9') ||
4001
m_serializedText
[
m_currentTokenStartIndex] == '-' || m_serializedText
[
m_currentTokenStartIndex] == '+') {
4009
if (m_serializedText
[
m_currentTokenStartIndex] != rhs) {
4053
&& m_serializedText
[
m_currentTokenStartIndex] == rhs)) {
4066
if (m_serializedText
[
m_currentTokenStartIndex] != lhs) {
4113
if (m_serializedText
[
m_currentTokenStartIndex] != rhs) {
4128
&& m_serializedText
[
m_currentTokenStartIndex] == sep) {
PresentationBuildTasks (95)
Base\System\Windows\Markup\RuntimeIdentifierPropertyAttribute.cs (2)
115
uc = Char.GetUnicodeCategory(name
[
i]);
121
name
[
i] == '_');
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
1306
return Content
[
Index++];
1316
return Content
[
Index];
Core\CSharp\System\Windows\Media\ParsersCommon.cs (22)
140
if (pathString
[
curIndex] == 'F')
153
((pathString
[
curIndex] != '0') &&
154
(pathString
[
curIndex] != '1')))
162
fillRule = pathString
[
curIndex] != '0' ;
228
char ch = _pathString
[
_curIndex];
276
_token = _pathString
[
_curIndex ++];
292
_token = _pathString
[
_curIndex];
314
if (signAllowed && More() && ((_pathString
[
_curIndex] == '-') || _pathString
[
_curIndex] == '+'))
319
while (More() && (_pathString
[
_curIndex] >= '0') && (_pathString
[
_curIndex] <= '9'))
370
if (More() && ((_pathString
[
_curIndex] == '-') || _pathString
[
_curIndex] == '+'))
376
if (More() && (_pathString
[
_curIndex] == 'I'))
386
else if (More() && (_pathString
[
_curIndex] == 'N'))
400
if (More() && (_pathString
[
_curIndex] == '.'))
408
if (More() && ((_pathString
[
_curIndex] == 'E') || (_pathString
[
_curIndex] == 'e')))
420
if (_pathString
[
start] == '+')
424
else if (_pathString
[
start] == '-')
434
value = value * 10 + (_pathString
[
start] - '0');
465
_token = _pathString
[
_curIndex ++];
Framework\MS\Internal\Globalization\LocalizationComments.cs (14)
106
if (Char.IsWhiteSpace(input
[
i]) && !escaped)
119
if (input
[
i] == CommentStart && !escaped)
135
else if (input
[
i] == EscapeChar && !escaped)
141
tokenBuffer.Append(input
[
i]);
151
if (input
[
i] == CommentStart && !escaped)
154
tokenBuffer.Append(input
[
i]);
157
else if (!Char.IsWhiteSpace(input
[
i]))
166
if (input
[
i] == CommentEnd)
179
tokenBuffer.Append(input
[
i]);
183
else if (input
[
i] == CommentStart && !escaped)
191
if (input
[
i] == EscapeChar && !escaped)
197
tokenBuffer.Append(input
[
i]);
229
if (Char.IsWhiteSpace(input
[
i]))
243
builder.Append(input
[
i]);
Framework\System\Windows\Markup\MarkupExtensionParser.cs (32)
378
if (Char.IsWhiteSpace(attrValue
[
i]))
392
if (!gotEscape && attrValue
[
i] == '\\')
397
else if (attrValue
[
i] == '}')
413
stringBuilder.Append(attrValue
[
i]);
420
if (!gotEscape && attrValue
[
i] == '\\')
424
else if (attrValue
[
i] == '}')
432
stringBuilder.Append(attrValue
[
i]);
450
else if( attrValue
[
length-1] == '}')
984
if (!gotEscape && args
[
i] == '\\')
990
if (!nonWhitespaceFound && !Char.IsWhiteSpace(args
[
i]))
1018
stringBuilder.Append(args
[
i]);
1027
if (inQuotes && args
[
i] == quoteChar)
1039
if (leftCurlies > 0 && args
[
i] == '}')
1043
else if (args
[
i] == '{')
1047
stringBuilder.Append(args
[
i]);
1054
stringBuilder.Append(args
[
i]);
1055
if (bracketCharacters.StartsEscapeSequence(args
[
i]))
1057
bracketCharacterStack.Push(args
[
i]);
1059
else if (bracketCharacters.EndsEscapeSequence(args
[
i]))
1061
if (bracketCharacters.Match(bracketCharacterStack.Peek(), args
[
i]))
1067
ThrowException(SRID.ParserMarkupExtensionInvalidClosingBracketCharacers, args
[
i].ToString(), lineNumber, linePosition);
1078
switch(args
[
i])
1090
quoteChar = args
[
i];
1095
if (inCtorParsingMode && args
[
i] == ',')
1130
if (args
[
i] == '=')
1139
list.Add(args
[
i]);
1164
stringBuilder.Append(args
[
i]);
1168
if (bracketCharacters != null && bracketCharacters.StartsEscapeSequence(args
[
i]))
1171
bracketCharacterStack.Push(args
[
i]);
1176
stringBuilder.Append(args
[
i]);
1640
if (noEscape && value
[
i] == '\\')
1651
builder.Append(value
[
i]);
Framework\System\Windows\Markup\StyleXamlParser.cs (1)
1195
if (!XamlReaderHelper.IsWhiteSpace(xamlTextNode.Text
[
i]))
Framework\System\Windows\Markup\TemplateXamlParser.cs (1)
1326
if (!XamlReaderHelper.IsWhiteSpace(xamlTextNode.Text
[
i]))
Framework\System\Windows\Markup\XamlReaderHelper.cs (13)
2448
char c = _text
[
current++];
2454
if (_text
[
current++] == '\0')
2461
c = _text
[
current++];
2469
if (_text
[
current++] == '\0')
2488
c = _text
[
current++];
5423
if (!IsWhiteSpace(text
[
index]))
5440
if (!IsWhiteSpace(text
[
i]))
5464
char highChar = s
[
index];
5467
char lowChar = s
[
index + 1];
5481
unicodeScalarValue = isPrevious ? s
[
index + 1] : highChar;
5541
char currentChar = text
[
textIndex];
5597
char prevChar = text
[
textIndex - 1];
5635
if (IsWhiteSpace(text
[
textLength - 1]))
Framework\System\Windows\Markup\XamlTypeMapper.cs (4)
818
if (!Char.IsWhiteSpace(attribValue
[
i]))
822
if (attribValue
[
i] == ',')
827
else if (Char.IsDigit(attribValue
[
i]))
3847
Char.IsWhiteSpace(keyString
[
keyString.Length-1])))
Shared\MS\Internal\TokenizerHelper.cs (4)
199
char currentChar = _str
[
_charIndex];
222
currentChar = _str
[
_charIndex];
282
char currentChar = _str
[
_charIndex];
299
currentChar = _str
[
_charIndex];
PresentationCore (58)
Core\CSharp\MS\Internal\FontCache\DWriteFactory.cs (1)
99
if (String.Compare(((localPath.Length > 0 && localPath
[
localPath.Length - 1] != Path.DirectorySeparatorChar) ? localPath + Path.DirectorySeparatorChar : localPath), Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase) == 0)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (4)
627
while (i < length && s
[
i] == '.')
631
while (i < length && char.IsWhiteSpace(s
[
i]))
893
int result = CompareOrdinalIgnoreCase(a
[
i], b
[
i]);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (1)
105
return path.Length == 0 || path
[
path.Length - 1] == '/';
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
143
_isFileSystemFolder = localPath
[
localPath.Length - 1] == Path.DirectorySeparatorChar;
Core\CSharp\MS\Internal\FontFace\FontFamilyIdentifier.cs (5)
315
while (i < length && char.IsWhiteSpace(friendlyName
[
i]))
323
if (friendlyName
[
i] == FamilyNameDelimiter)
325
if (i + 1 < length && friendlyName
[
i + 1] == FamilyNameDelimiter)
335
else if (friendlyName
[
i] == '\0')
347
while (end > begin && char.IsWhiteSpace(friendlyName
[
end - 1]))
Core\CSharp\MS\Internal\TextFormatting\TextMarkerSource.cs (2)
286
result[0] = numericSymbols
[
number];
313
result[i] = numericSymbols
[
number % b];
Core\CSharp\System\Windows\Markup\XamlSerializerUtil.cs (1)
56
if (!Char.IsWhiteSpace(s
[
i]))
Core\CSharp\System\Windows\Markup\XmlLanguage.cs (4)
457
if (languageTag
[
i] == '-')
649
return (prefix.Length == 0 || prefix.Length == longTag.Length || longTag
[
prefix.Length] == '-');
698
while (languageTag
[
i] != '-' && i > 0)
824
if (tag
[
i] > 127)
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (1)
92
else if (stringValue
[
stringValue.Length - 1] == _percentCharacter[0])
Core\CSharp\System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
85
&& stringValue
[
stringValue.Length - 1] == _iterationCharacter[0])
Core\CSharp\System\Windows\Media\CharacterMetrics.cs (3)
157
while (i < s.Length && s
[
i] == ' ')
162
while (j < s.Length && s
[
j] != ',')
167
while (k > i && s
[
k - 1] == ' ')
Core\CSharp\System\Windows\Media\FamilyMap.cs (7)
262
if (unicodeRanges
[
index] == '?')
271
unicodeRanges
[
index] == '?' &&
274
else if (unicodeRanges
[
index] == '-')
286
(index<unicodeRanges.Length && unicodeRanges
[
index] !=','))
304
while (index<numString.Length && numString
[
index] == ' ')
315
int n = (int) numString
[
index];
338
while (index < numString.Length && numString
[
index] == ' ')
Core\CSharp\System\Windows\Media\ParsersCommon.cs (22)
140
if (pathString
[
curIndex] == 'F')
153
((pathString
[
curIndex] != '0') &&
154
(pathString
[
curIndex] != '1')))
160
fillRule = pathString
[
curIndex] == '0' ? FillRule.EvenOdd : FillRule.Nonzero;
228
char ch = _pathString
[
_curIndex];
276
_token = _pathString
[
_curIndex ++];
292
_token = _pathString
[
_curIndex];
314
if (signAllowed && More() && ((_pathString
[
_curIndex] == '-') || _pathString
[
_curIndex] == '+'))
319
while (More() && (_pathString
[
_curIndex] >= '0') && (_pathString
[
_curIndex] <= '9'))
370
if (More() && ((_pathString
[
_curIndex] == '-') || _pathString
[
_curIndex] == '+'))
376
if (More() && (_pathString
[
_curIndex] == 'I'))
386
else if (More() && (_pathString
[
_curIndex] == 'N'))
400
if (More() && (_pathString
[
_curIndex] == '.'))
408
if (More() && ((_pathString
[
_curIndex] == 'E') || (_pathString
[
_curIndex] == 'e')))
420
if (_pathString
[
start] == '+')
424
else if (_pathString
[
start] == '-')
434
value = value * 10 + (_pathString
[
start] - '0');
465
_token = _pathString
[
_curIndex ++];
Core\CSharp\system\windows\TextDecorationCollectionConverter.cs (4)
215
&& pattern
[
i] == Char.ToUpperInvariant(input
[
index + i]);
237
if (input
[
separator] == Separator)
262
for (; index < input.Length && Char.IsWhiteSpace(input
[
index]); index++) ;
Shared\MS\Internal\CharacterBuffer.cs (1)
313
get { return _string
[
characterOffset]; }
PresentationFramework (220)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
735
if (Char.IsWhiteSpace(rawString
[
i]) == false)
737
sb.Append(rawString
[
i]);
src\Framework\MS\Internal\Data\PathParser.cs (6)
105
char c = (_index<_n) ? _path
[
_index] : NullChar;
191
while (_index < _n && _path
[
_index] == '.')
194
while (_index < _n && (level > 0 || SpecialChars.IndexOf(_path
[
_index]) < 0))
196
if (_path
[
_index] == '(')
198
else if (_path
[
_index] == ')')
259
Char c = _path
[
_index++];
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
581
char c = xpath
[
index];
590
c = xpath
[
index];
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (7)
39
switch (content
[
i])
46
builder.Append(content
[
i]);
76
builder.Append(content
[
i]);
146
if (input
[
i] == BamlConst.ChildStart)
148
if (i == 0 || input
[
i - 1]!= BamlConst.EscapeChar)
169
else if (input
[
i] == BamlConst.ChildEnd)
172
&& input
[
i - 1] != BamlConst.EscapeChar
src\Framework\MS\Internal\Globalization\LocalizationComments.cs (14)
106
if (Char.IsWhiteSpace(input
[
i]) && !escaped)
119
if (input
[
i] == CommentStart && !escaped)
135
else if (input
[
i] == EscapeChar && !escaped)
141
tokenBuffer.Append(input
[
i]);
151
if (input
[
i] == CommentStart && !escaped)
154
tokenBuffer.Append(input
[
i]);
157
else if (!Char.IsWhiteSpace(input
[
i]))
166
if (input
[
i] == CommentEnd)
179
tokenBuffer.Append(input
[
i]);
183
else if (input
[
i] == CommentStart && !escaped)
191
if (input
[
i] == EscapeChar && !escaped)
197
tokenBuffer.Append(input
[
i]);
229
if (Char.IsWhiteSpace(input
[
i]))
243
builder.Append(input
[
i]);
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (2)
173
result[0] = numericSymbols
[
number];
201
result[i] = numericSymbols
[
number % b];
src\Framework\System\Windows\Controls\AccessText.cs (1)
669
if (index + 1 < lenght && text
[
index + 1] != AccessKeyMarker)
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (2)
104
char ch = s
[
i];
167
char ch = s
[
i];
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
737
if (text
[
i] != _escapeChar)
src\Framework\System\Windows\Controls\DefinitionBase.cs (3)
565
bool isDigit = Char.IsDigit(id
[
i]);
569
|| Char.IsLetter(id
[
i])
570
|| '_' == id
[
i] ) )
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
212
securePassword.AppendChar(value
[
i]);
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
94
_password.InsertAt(offset + i, textData
[
i]);
src\Framework\System\Windows\Controls\TextBox.cs (9)
1710
if (oldText
[
prefix] != newText
[
prefix])
1717
if (oldText
[
oldText.Length - 1 - suffix ] != newText
[
newText.Length - 1 - suffix])
1736
char anchor = oldText
[
oldIndex - 1];
1750
if (newText
[
index] != oldText
[
oldIndex - (anchorIndex - index)])
1760
if (newText
[
index] != oldText
[
oldIndex + (index - anchorIndex)])
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (1)
481
if ((charIndex == 0 || s
[
charIndex-1] == ' ') && (charIndex != s.Length - 1))
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
165
chars[i] = run.Text
[
run.Text.Length - 1 - i];
180
if (!Char.IsWhiteSpace(s
[
i]))
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (2)
697
char lastChar = strPrev
[
textLength - 1];
1704
if (addSpace && run.Text.Length>0 && !run.Text.EndsWith(" ", StringComparison.Ordinal) && !IsHyphen(run.Text
[
run.Text.Length - 1]))
src\Framework\System\Windows\Documents\Glyphs.cs (4)
434
if (!Char.IsWhiteSpace(valueSpec
[
i]))
569
char c = i < glyphsProp.Length ? glyphsProp
[
i] : '\0';
598
parsedGlyphData.glyphIndex = GetGlyphFromCharacter(fontFace, unicodeString
[
parsedCharacterCount]);
693
parsedGlyphData.glyphIndex = GetGlyphFromCharacter(fontFace, unicodeString
[
parsedCharacterCount]);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (47)
288
if (s
[
i] == '"')
294
sb.Append(s
[
i]);
3460
if (rgChars[k] != Name
[
k])
3713
while (iCP > 0 && entry.Name
[
iCP - 1] == ' ')
4976
if ((text
[
i] & 0xF800) == 0xD800) // if surrogate
4979
|| ((text
[
i] & 0xFC00) == 0xDC00) // or low surrogate occurs before high
4980
|| ((text
[
i + 1] & 0xFC00) != 0xDC00) // or high not followed by low
5026
if (text
[
currentIndex] < 32
5027
&& text
[
currentIndex] != '\t')
5031
if (text
[
currentIndex] == '&'
5032
|| text
[
currentIndex] == '>'
5033
|| text
[
currentIndex] == '<'
5034
|| text
[
currentIndex] == 0)
5048
if (text
[
currentIndex] < 32 && text
[
currentIndex] != '\t')
5050
switch (text
[
currentIndex])
5054
int ic = (int)text
[
currentIndex];
5066
switch (text
[
currentIndex])
8448
if (instr
[
i] == ' ')
8454
else if (instr
[
i] == '"')
8464
if (instr
[
iEnd] == '"')
8490
else if (instr
[
i] == '\\')
8495
switch (instr
[
i])
8552
if (instr
[
i] == ' ')
8557
else if (nChar == -1 && instr
[
i] >= '0' && instr
[
i] <= '9')
8560
if (instr
[
i] == '0' && i < instr.Length - 1 && instr
[
i + 1] == 'x')
8565
for (; i < instr.Length && instr
[
i] != ' ' && instr
[
i] != '\\'; i++)
8569
nChar = (nChar * 16) + HexToInt(instr
[
i]);
8576
for (; i < instr.Length && instr
[
i] != ' ' && instr
[
i] != '\\'; i++)
8580
nChar = (nChar * 10) + DecToInt(instr
[
i]);
8586
else if (instr
[
i] == '\\')
8616
switch (instr
[
i++])
8631
if (i < instr.Length && instr
[
i] == ' ')
8635
for (; i < instr.Length && instr
[
i] != ' '; i++)
8665
if (i < instr.Length && instr
[
i] == ' ')
8669
if (i < instr.Length && instr
[
i] == '"')
8674
for (; i < instr.Length && instr
[
i] != '"'; i++)
11549
if (text
[
nEnd] == 0x0d || text
[
nEnd] == 0x0a)
11568
while (nEnd < text.Length && (text
[
nEnd] == 0x0d || text
[
nEnd] == 0x0a))
11572
if (nEnd + 1 < text.Length && text
[
nEnd] == 0x0d && text
[
nEnd] == 0x0a)
src\Framework\System\windows\Documents\TextEditor.cs (2)
1492
if ((text
[
position - 1] == '\r' && text
[
position] == '\n')
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (4)
1147
if (pastedText
[
i] == '\r' || pastedText
[
i] == '\n')
1168
if (pastedText
[
i] == '\r' && i + 1 < pastedText.Length && pastedText
[
i + 1] == '\n')
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
358
isSelectionIgnoringErrors = TextPointerBase.IsCharUnicodeNewLine(text
[
i]);
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1556
if (Char.IsControl(textData
[
i]))
src\Framework\System\Windows\Documents\TextFindEngine.cs (5)
806
char currentChar = textString
[
index];
853
if (IsSeparatorChar(textString
[
matchIndex + matchLength]))
866
if (IsSeparatorChar(textString
[
matchIndex - 1]) && hasFollowingSeparatorChar)
873
if (IsSeparatorChar(textString
[
matchIndex - 1]) && IsSeparatorChar(textString
[
matchIndex + matchLength]))
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
1044
result[0] = numericSymbols
[
number];
1067
result[i] = numericSymbols
[
number % b];
src\Framework\System\windows\Documents\TextSelection.cs (1)
2513
if ((fontSignature
[
FONTSIGNATURE_BIDI_INDEX] & FONTSIGNATURE_BIDI) != 0)
src\Framework\System\Windows\Documents\XamlToRtfParser.cs (34)
278
char tokenChar = _xaml
[
_xamlIndex];
288
for (_xamlIndex++; IsCharsAvailable(1) && IsSpace(_xaml
[
_xamlIndex]); _xamlIndex++)
304
if (_xaml
[
_xamlIndex] == ';')
319
if (_xaml
[
_xamlIndex] == '&' || _xaml
[
_xamlIndex] == '<')
373
char currentChar = _xaml
[
_xamlIndex];
381
if (_xaml
[
_xamlIndex] == '?' && _xaml
[
_xamlIndex + 1] == '>')
396
if (_xaml
[
_xamlIndex] == '-' && _xaml
[
_xamlIndex + 1] == '-' && _xaml
[
_xamlIndex + 2] == '>')
415
if (_xaml
[
_xamlIndex] == '>')
435
if (_xaml
[
_xamlIndex] == quoteChar)
440
else if (_xaml
[
_xamlIndex] == '"' || _xaml
[
_xamlIndex] == '\'')
442
quoteChar = _xaml
[
_xamlIndex];
444
else if (_xaml
[
_xamlIndex] == '>')
783
if (xaml.Length < 2 || xaml[0] != '<' || xaml
[
xaml.Length - 1] != '>')
790
if (IsSpace(xaml
[
xamlIndex]))
796
if (xaml
[
xamlIndex] == '/')
806
for (xamlIndex++; IsNameChar(xaml
[
xamlIndex]); xamlIndex++)
817
for (; IsSpace(xaml
[
xamlIndex]); xamlIndex++)
829
if (xaml
[
xamlIndex] == '/')
846
for (xamlIndex++; IsNameChar(xaml
[
xamlIndex]); xamlIndex++)
856
for (; IsSpace(xaml
[
xamlIndex]); xamlIndex++)
863
if (xamlIndex == xaml.Length || xaml
[
xamlIndex] != '=')
871
for (; IsSpace(xaml
[
xamlIndex]); xamlIndex++)
877
if (xaml
[
xamlIndex] != '\'' && xaml
[
xamlIndex] != '"')
882
quoteChar = xaml
[
xamlIndex++];
887
for (; xamlIndex < xaml.Length && xaml
[
xamlIndex] != quoteChar; xamlIndex++)
964
for (; IsSpace(xaml
[
xamlIndex]); xamlIndex++)
973
for (xamlIndex++; IsNameChar(xaml
[
xamlIndex]); xamlIndex++)
981
for (; IsSpace(xaml
[
xamlIndex]); xamlIndex++)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (14)
846
if (documentNode.NavigateUri
[
i] == '\\')
852
_rtfBuilder.Append(documentNode.NavigateUri
[
i]);
2448
while (index < characters.Length && IsNewLine(characters
[
index]))
2455
while (end < characters.Length && !IsNewLine(characters
[
end]))
2635
if (xaml
[
iEnd] == '\r' || xaml
[
iEnd] == '\n')
2637
if (xaml
[
iEnd] == '\r' && iEnd + 1 < xaml.Length && xaml
[
iEnd + 1] == '\n')
3560
while (n >= 0 && (s
[
n] < '0' || s
[
n] > '9') && s
[
n] != '.')
3622
char colorChar = brush
[
brushStringIndex];
3827
while (e < thickness.Length && thickness
[
e] != ',')
3911
AppendRtfChar(sb, s
[
i], cp, ref e, rgAnsi, rgChar);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1035
if (!Char.IsWhiteSpace(value
[
i]))
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
293
result = 101 * result + (uint)typeName
[
i];
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
786
result = 101 * result + (uint)typeName
[
i];
src\Framework\System\Windows\Markup\BamlReader.cs (3)
1769
if (value
[
i] == '{' || value
[
i] == '}')
1780
builder.Append(value
[
i]);
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (32)
378
if (Char.IsWhiteSpace(attrValue
[
i]))
392
if (!gotEscape && attrValue
[
i] == '\\')
397
else if (attrValue
[
i] == '}')
413
stringBuilder.Append(attrValue
[
i]);
420
if (!gotEscape && attrValue
[
i] == '\\')
424
else if (attrValue
[
i] == '}')
432
stringBuilder.Append(attrValue
[
i]);
450
else if( attrValue
[
length-1] == '}')
984
if (!gotEscape && args
[
i] == '\\')
990
if (!nonWhitespaceFound && !Char.IsWhiteSpace(args
[
i]))
1018
stringBuilder.Append(args
[
i]);
1027
if (inQuotes && args
[
i] == quoteChar)
1039
if (leftCurlies > 0 && args
[
i] == '}')
1043
else if (args
[
i] == '{')
1047
stringBuilder.Append(args
[
i]);
1054
stringBuilder.Append(args
[
i]);
1055
if (bracketCharacters.StartsEscapeSequence(args
[
i]))
1057
bracketCharacterStack.Push(args
[
i]);
1059
else if (bracketCharacters.EndsEscapeSequence(args
[
i]))
1061
if (bracketCharacters.Match(bracketCharacterStack.Peek(), args
[
i]))
1067
ThrowException(SRID.ParserMarkupExtensionInvalidClosingBracketCharacers, args
[
i].ToString(), lineNumber, linePosition);
1078
switch(args
[
i])
1090
quoteChar = args
[
i];
1095
if (inCtorParsingMode && args
[
i] == ',')
1130
if (args
[
i] == '=')
1139
list.Add(args
[
i]);
1164
stringBuilder.Append(args
[
i]);
1168
if (bracketCharacters != null && bracketCharacters.StartsEscapeSequence(args
[
i]))
1171
bracketCharacterStack.Push(args
[
i]);
1176
stringBuilder.Append(args
[
i]);
1640
if (noEscape && value
[
i] == '\\')
1651
builder.Append(value
[
i]);
src\Framework\System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
382
char ch = value
[
i];
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (2)
1261
char currentChar = value
[
textIndex];
1664
char c = ns
[
i];
src\Framework\System\Windows\Markup\XamlSerializerUtil.cs (1)
55
if (!Char.IsWhiteSpace(s
[
i]))
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (4)
818
if (!Char.IsWhiteSpace(attribValue
[
i]))
822
if (attribValue
[
i] == ',')
827
else if (Char.IsDigit(attribValue
[
i]))
3847
Char.IsWhiteSpace(keyString
[
keyString.Length-1])))
src\Framework\System\Windows\PropertyPath.cs (1)
913
return (name != null && name.Length > 1 && name[0] == '(' && (name
[
name.Length - 1] == ')'));
src\Framework\System\Windows\PropertyPathConverter.cs (2)
197
if (originalPath
[
i] == '(')
202
if (originalPath
[
j] == ')')
SMDiagnostics (3)
System\ServiceModel\Diagnostics\EncodingFallbackAwareXmlTextWriter.cs (3)
44
if (XmlConvert.IsXmlChar(value
[
i]))
51
XmlConvert.IsXmlSurrogatePair(value
[
i + 1], value
[
i]))
System (549)
compmod\microsoft\csharp\csharpcodeprovider.cs (21)
427
switch (value
[
i]) {
451
AppendEscapedChar(b,value
[
i]);
455
b.Append(value
[
i]);
466
if( Char.IsHighSurrogate(value
[
i])
468
&& Char.IsLowSurrogate(value
[
i+1])){
491
if (value
[
i] == '\"')
494
b.Append(value
[
i]);
1389
if( value
[
i] == '\u0000') {
1392
Output.Write(value
[
i]);
1394
if( value
[
i] == '\r') {
1395
if (i < value.Length - 1 && value
[
i+1] == '\n') { // if next char is '\n', skip it
1402
else if( value
[
i] == '\n') {
1406
else if( value
[
i] == '\u2028' || value
[
i] == '\u2029' || value
[
i] == '\u0085') {
3265
switch (baseType
[
i]) {
3278
while (i < baseType.Length && baseType
[
i] >= '0' && baseType
[
i] <='9') {
3279
numTypeArgs = numTypeArgs*10 + (baseType
[
i] - '0');
3288
if (i < baseType.Length && (baseType
[
i] =='+' || baseType
[
i] == '.')) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (19)
429
char ch = value
[
i];
444
if (i < value.Length - 1 && value
[
i+1] == '\n') {
471
b.Append(value
[
i]);
482
if( Char.IsHighSurrogate(value
[
i])
484
&& Char.IsLowSurrogate(value
[
i+1])){
1494
Output.Write(value
[
i]);
1496
if( value
[
i] == '\r') {
1497
if (i < value.Length - 1 && value
[
i+1] == '\n') { // if next char is '\n', skip it
1504
else if( value
[
i] == '\n') {
1508
else if( value
[
i] == '\u2028' || value
[
i] == '\u2029' || value
[
i] == '\u0085') {
2597
if (value[0] != '[' || value
[
value.Length - 1] != ']') {
2689
switch (baseType
[
i]) {
2702
while (i < baseType.Length && baseType
[
i] >= '0' && baseType
[
i] <='9') {
2703
numTypeArgs = numTypeArgs*10 + (baseType
[
i] - '0');
2712
if (i < baseType.Length && (baseType
[
i] =='+' || baseType
[
i] == '.')) {
compmod\system\codedom\CodeTypeReference.cs (13)
150
if( typeName
[
current--] == ']') {
151
while(current >=0 && typeName
[
current] == ',') {
156
if( current>=0 && typeName
[
current] == '[') { // found a valid array tail
170
if( current > 0 && typeName
[
current--] == ']') {
177
if( typeName
[
current] == '[' ) {
181
else if( typeName
[
current] == ']' ) {
184
else if( typeName
[
current] == ',' && unmatchedRightBrackets == 1) {
386
while( start < typeName.Length && Char.IsWhiteSpace(typeName
[
start])) start++;
387
while( end >= 0 && Char.IsWhiteSpace(typeName
[
end])) end--;
390
if (typeName
[
start] =='[' && typeName
[
end] == ']') {
396
if (typeName
[
end] != ']') {
399
if( typeName
[
index] == ',') {
compmod\system\codedom\compiler\CodeGenerator.cs (1)
1935
char ch = value
[
i];
compmod\system\codedom\compiler\CodeValidator.cs (4)
552
if (baseType
[
i] == '`') {
555
while (i < baseType.Length && baseType
[
i] >= '0' && baseType
[
i] <='9') {
556
numTypeArgs = numTypeArgs*10 + (baseType
[
i] - '0');
compmod\system\collections\specialized\fixedstringlookup.cs (2)
70
searchChar = char.ToLower(value
[
pos], CultureInfo.InvariantCulture);
72
searchChar = value
[
pos];
compmod\system\componentmodel\ComponentResourceManager.cs (1)
142
if (key.Length <= idx || key
[
idx] != '.' ) {
compmod\system\componentmodel\MaskedTextProvider.cs (2)
330
ch = this.mask
[
maskPos];
2380
switch (this.mask
[
charDex.MaskPosition])
compmod\system\configuration\appsettingsreader.cs (2)
80
while (val
[
count] == '(' && val
[
len - count - 1] == ')') {
compmod\system\diagnostics\assertwrapper.cs (3)
225
char ch = message
[
i];
233
if (ch == '\r' && message
[
i + 1] == '\n')
235
else if (ch == '\n' && message
[
i + 1] == '\r')
compmod\system\diagnostics\XmlWriterTraceListener.cs (1)
290
switch(str
[
i]) {
net\System\_DomainName.cs (8)
28
if (str
[
i] >= 'A' && str
[
i] <= 'Z') {
32
if (str
[
i] == ':')
341
if ((input
[
index] == 'x') &&
342
(input
[
index + 1] == 'n') &&
343
(input
[
index + 2] == '-') &&
344
(input
[
index + 3] == '-'))
421
char c = unescapedHostname
[
newPos];
net\System\_IPv4Address.cs (1)
341
for (; (start < end) && (ch = name
[
start]) != '.' && ch != ':'; ++start) {
net\System\_IPv6Address.cs (18)
407
if (address
[
start] == '[') {
411
for (int i = start; i < address.Length && address
[
i] != ']'; ) {
413
switch (address
[
i]) {
421
for (++i; address
[
i] != ']' && address
[
i] != '/'; ++i) {
426
for (; address
[
i] != ']'; ++i) {
435
if (address
[
i] == ':') {
454
for (int j = i; (address
[
j] != ']') &&
455
(address
[
j] != ':') &&
456
(address
[
j] != '%') &&
457
(address
[
j] != '/') &&
460
if (address
[
j] == '.') {
471
while ((address
[
j] != ']') && (address
[
j] != '/') && (address
[
j] != '%')) {
504
for (++i; address
[
i] != ']'; ++i) {
505
PrefixLength = PrefixLength * 10 + (address
[
i] - '0');
510
number = number * 16 + Uri.FromHex(address
[
i++]);
net\System\Net\_Connection.cs (5)
1901
if ((byte)BeforeVersionNumberBytes
[
totalBytesParsed - initialBytesParsed + bytesParsed] != byteBuffer[bytesParsed])
2041
if (*(pBuffer++) != (byte) s
[
i])
2683
m_IISVersion = server
[
i++] - '0';
2684
while(i < server.Length && Char.IsDigit(server
[
i])) {
2685
m_IISVersion = m_IISVersion*10 + server
[
i++] - '0';
net\System\Net\_DigestClient.cs (9)
169
if ((index==0 || HttpDigest.ValidSeparator.IndexOf(challenge.QualityOfProtection
[
index - 1])>=0) &&
170
(index+HttpDigest.SupportedQuality.Length==challenge.QualityOfProtection.Length || HttpDigest.ValidSeparator.IndexOf(challenge.QualityOfProtection
[
index + HttpDigest.SupportedQuality.Length])>=0) ) {
226
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
470
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
846
if (value
[
i]>(char)0x7F) {
855
bytes[i] = (byte)value
[
i];
909
if (rawString
[
i]>(char)0x7F) {
910
GlobalLog.Print("HttpDigest::DetectCharset() found non ASCII character:[" + ((int)rawString
[
i]).ToString() + "] at offset i:[" + i.ToString() + "] charset:[" + charset.ToString() + "]");
1231
encodedBytes[i] = (byte)myString
[
i];
net\System\Net\_FtpControlStream.cs (3)
801
if (directory.Length > 1 && directory
[
directory.Length-1] == '/')
960
if (orginalPath.Length > 0 && orginalPath
[
orginalPath.Length-1] != '/') {
1227
if(responseString
[
lineStart + 3] == ' ')
net\System\Net\_HeaderInfoTable.cs (3)
47
if (value
[
i] == '\"') {
50
else if ((value
[
i] == ',') && !inquote) {
58
vp[chIndex++] = value
[
i];
net\System\Net\_KerberosClient.cs (2)
54
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
179
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
net\System\Net\_ListenerResponseStream.cs (1)
171
Marshal.WriteByte(pBufferAsIntPtr, i, (byte)chunkHeader
[
i]);
net\System\Net\_NegotiateClient.cs (2)
53
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
202
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
net\System\Net\_NtlmClient.cs (1)
52
if (challenge.Length > blobBegin && challenge
[
blobBegin] != ',') {
net\System\Net\_ServiceNameStore.cs (4)
137
while(j < uriPrefix.Length && uriPrefix
[
j] != '/' && (uriPrefix
[
j] != ':' || inSquareBrackets))
139
if (uriPrefix
[
j] == '[')
148
if (inSquareBrackets && uriPrefix
[
j] == ']')
net\System\Net\_ShellExpression.cs (7)
84
else if (target
[
j] == '.')
95
if (j == target.Length || target
[
j] == '.')
106
if (j == target.Length || target
[
j] == '.')
134
if (j < target.Length && (int) pattern[i] == (int) char.ToLowerInvariant(target
[
j]))
185
switch (patString
[
j])
206
switch (patString
[
j])
228
pattern[i++] = (ShExpTokens) (int) char.ToLowerInvariant(patString
[
j]);
net\System\Net\AuthenticationManager.cs (13)
273
if (challenge
[
i] == '\"')
281
if (i == challenge.Length - 1 || (challenge
[
i] == '\"' && firstQuote > secondQuote))
301
if ((index == 0 || challenge
[
index - 1] == ' ' || challenge
[
index - 1] == ',') &&
302
(index + signature.Length == challenge.Length || challenge
[
index + signature.Length] == ' ' || challenge
[
index + signature.Length] == ','))
330
if ((challenge
[
start + i] | 0x20) != lwrCaseSignature
[
i])
367
if (firstQuote > secondQuote && challenge
[
i] == '\\' && i + 1 < challenge.Length && challenge
[
i + 1] == '\"')
374
else if (challenge
[
i] == '\"')
385
else if (challenge
[
i] == '=' && firstQuote <= secondQuote && offset < 0)
389
else if (challenge
[
i] == ',' && firstQuote <= secondQuote)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (19)
1845
if ((s1
[
i]|0x20) != (s2
[
i]|0x20)) {
1859
if ((s1[start+i]|0x20) != (s2
[
i]|0x20)) {
1877
while (idx < ranges.Length && ranges
[
idx] == ' ') {
1883
if( idx >= ranges.Length || ranges
[
idx-5] != 'b' || ranges
[
idx-4] != 'y' || ranges
[
idx-3] != 't' || ranges
[
idx-2] != 'e' || ranges
[
idx-1] != 's')
1890
while (idx < ranges.Length && ranges
[
idx] == ' ') {
1893
if (ranges
[
idx] != '=') {
1898
if (ranges
[
idx] != ' ') {
1904
while (++idx < ranges.Length && (ch=ranges
[
idx]) == ' ') {
1913
while(++idx < ranges.Length && (ch = ranges
[
idx]) >= '0' && ch <= '9') {
1930
while(++idx < ranges.Length && (ch = ranges
[
idx]) >= '0' && ch <= '9') {
1936
if (ranges
[
idx++] != ' ') {
1944
while (idx < ranges.Length && (ch = ranges
[
idx]) == ' ') {
1951
while (++idx < ranges.Length && (ch=ranges
[
idx]) == ' ') {
1959
while (++idx < ranges.Length && (ch = ranges
[
idx]) >= '0' && ch <= '9') {
net\System\Net\Cache\HttpRequestCacheValidator.cs (22)
586
while (++idx < s.Length && (ch=s
[
idx]) != '/') {
596
while (++idx < s.Length && (ch=s
[
idx]) >= '0' && ch <= '9') {
602
while (++idx < s.Length && (ch=s
[
idx]) >= '0' && ch <= '9') {
608
while (++idx < s.Length && ((ch=s
[
idx]) == ' ' || ch == '\t'))
618
ch=s
[
idx];
623
while (idx < s.Length && (s
[
idx] == ' ' || s
[
idx] == '\t'))
702
while (++colpos < s.Length && (s
[
colpos] == ' ' || s
[
colpos] == '\t'))
791
while(++i < s.Length && (ch = s
[
i]) >= '0' && ch <= '9') {
832
while(i < s.Length && s
[
i++] == ' ') {
835
while(i < s.Length && s
[
i] >= '0' && s
[
i] <= '9') {
836
sec = sec*10 + (s
[
i++] - '0');
1171
if (end >= start && s
[
start] != '1') {
1183
while (end >= start && s
[
end] == ' ') {
1209
while (start < val.Length && val
[
start] == ' ') {
1221
while (end < val.Length && val
[
end] != ',' && val
[
end] != '\"') {
1230
if (val
[
end] == '\"') {
1231
while (++end < val.Length && val
[
end] != '"') {
1245
while (++end < val.Length && val
[
end] == ' ') {
net\System\Net\cookie.cs (14)
382
(!(m_value.Length > 2 && m_value[0] == '\"' && m_value
[
m_value.Length-1] == '\"') && m_value.IndexOfAny(Reserved2Value) != -1)) {
390
if (Comment != null && !(Comment.Length > 2 && Comment[0] == '\"' && Comment
[
Comment.Length-1] == '\"')
398
if (Path != null && !(Path.Length > 2 && Path[0] == '\"' && Path
[
Path.Length-1] == '\"')
556
char ch = name
[
i];
584
if (value[0] != '\"' || value
[
value.Length-1] != '\"') {
1036
while ((m_index < m_length) && Char.IsWhiteSpace(m_tokenStream
[
m_index])) {
1045
if (m_tokenStream
[
m_index] == '"') {
1050
char currChar = m_tokenStream
[
m_index];
1069
&& (m_tokenStream
[
m_index] != ';')
1070
&& (ignoreEquals || (m_tokenStream
[
m_index] != '='))
1071
&& (ignoreComma || (m_tokenStream
[
m_index] != ','))) {
1076
if (m_tokenStream
[
m_index] == ',') {
1086
switch (m_tokenStream
[
m_index]) {
1604
if (value.Length < 2 || value[0] != '\"' || value
[
value.Length-1] != '\"')
net\System\Net\cookiecontainer.cs (4)
972
if (pathLeft
[
i] != pathRight
[
i]) {
973
return pathLeft
[
i] - pathRight
[
i];
net\System\Net\DNS.cs (1)
215
|| hostName.Length == MaxHostName && hostName
[
MaxHostName-1] != '.') {
net\System\Net\HttpListener.cs (14)
646
while (j<uriPrefix.Length && uriPrefix
[
j]!='/' && (uriPrefix
[
j]!=':' || inSquareBrakets)) {
647
if (uriPrefix
[
j]=='[') {
654
if (inSquareBrakets && uriPrefix
[
j]==']') {
662
if (uriPrefix
[
uriPrefix.Length-1]!='/') {
665
registeredPrefix = uriPrefix
[
j]==':' ? String.Copy(uriPrefix) : uriPrefix.Substring(0, j) + (i==7 ? ":80" : ":443") + uriPrefix.Substring(j);
1455
if (authorizationHeader
[
index] == ' ' || authorizationHeader
[
index] == '\t' ||
1456
authorizationHeader
[
index] == '\r' || authorizationHeader
[
index] == '\n')
1525
if (authorizationHeader
[
index] != ' ' && authorizationHeader
[
index] != '\t' &&
1526
authorizationHeader
[
index] != '\r' && authorizationHeader
[
index] != '\n')
net\System\Net\HttpListenerRequest.cs (19)
1233
char chPrev = headerValue
[
i-1];
1234
char chNext = headerValue
[
i+k];
1246
while (i < l && Char.IsWhiteSpace(headerValue
[
i]))
1248
if (i >= l || headerValue
[
i] != '=')
1251
while (i < l && Char.IsWhiteSpace(headerValue
[
i]))
1261
if (i < l && headerValue
[
i] == '"') {
1272
if (headerValue
[
j] == ' ' || headerValue
[
j] == ',')
1309
if (i < l && s
[
i] == ' ')
1341
char ch = s
[
pos];
1347
if (s
[
pos+1] == 'u' && pos < count-5) {
1348
int h1 = HexToInt(s
[
pos+2]);
1349
int h2 = HexToInt(s
[
pos+3]);
1350
int h3 = HexToInt(s
[
pos+4]);
1351
int h4 = HexToInt(s
[
pos+5]);
1363
int h1 = HexToInt(s
[
pos+1]);
1364
int h2 = HexToInt(s
[
pos+2]);
1469
char ch = s
[
i];
1506
if (i == l-1 && s
[
i] == '&')
net\System\Net\HttpListenerRequestUriBuilder.cs (2)
233
current = rawPath
[
index];
240
current = rawPath
[
index];
net\System\Net\HttpListenerResponse.cs (1)
157
char c = (char) (0x000000ff & (uint) value
[
i]);
net\System\Net\HttpWebResponse.cs (4)
227
if (srchString
[
i-8] == ';' || srchString
[
i-8] == ' '){
230
while (i < srchString.Length && srchString
[
i] == ' ')
235
if (i < srchString.Length - 1 && srchString
[
i] == '=') {
net\System\Net\mail\Attachment.cs (2)
161
if (value.Length == 0 || offset >= mediaType.Length || mediaType
[
offset++] != '/')
222
if (cid.Length >= 2 && cid[0] == '<' && cid
[
cid.Length - 1] == '>')
net\System\Net\mail\BaseWriter.cs (2)
90
else if (value
[
index] == MailBnfHelper.Space || value
[
index] == MailBnfHelper.Tab)
net\System\Net\mail\BufferBuilder.cs (1)
87
char c = value
[
offset+i];
net\System\Net\mail\ContentDisposition.cs (4)
363
if (disposition
[
offset++] != ';')
364
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, disposition
[
offset-1]));
374
if (disposition
[
offset++] != '=')
386
if (disposition
[
offset] == '"')
net\System\Net\mail\ContentType.cs (5)
123
if (mediaType.Length == 0 || offset >= value.Length || value
[
offset++] != '/')
264
if (mediaType == null || mediaType.Length == 0 || offset >= type.Length || type
[
offset++] != '/'){
278
if (type
[
offset++] != ';'){
294
if ( offset >= type.Length || type
[
offset++] != '='){
304
if (type
[
offset] == '"')
net\System\Net\mail\DomainLiteralReader.cs (5)
38
Debug.Assert(data
[
index] == MailBnfHelper.EndSquareBracket, "data did not end with a square bracket");
59
else if (data
[
index] == MailBnfHelper.StartSquareBracket)
65
else if (data
[
index] > MailBnfHelper.Ascii7bitMaxValue || !MailBnfHelper.Dtext[data
[
index]])
67
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
net\System\Net\mail\DotAtomReader.cs (5)
50
if (data
[
index] <= MailBnfHelper.Ascii7bitMaxValue // Any Unicode allowed
51
&& (data
[
index] != MailBnfHelper.Dot && !MailBnfHelper.Atext[data
[
index]])) // Invalid char
60
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
63
else if (data
[
index + 1] == MailBnfHelper.Dot)
net\System\Net\mail\MailAddress.cs (1)
83
&& this.displayName
[
this.displayName.Length - 1] == '\"') {
net\System\Net\mail\MailAddressParser.cs (19)
51
Debug.Assert(index == -1 || data
[
index] == MailBnfHelper.Comma,
87
if (data
[
index] == MailBnfHelper.EndAngleBracket)
96
if (data
[
index] != MailBnfHelper.At)
109
if (index >= 0 && data
[
index] == MailBnfHelper.StartAngleBracket)
119
(index >= 0 ? data
[
index] : MailBnfHelper.EndAngleBracket)));
125
if (index >= 0 && !(expectMultipleAddresses && data
[
index] == MailBnfHelper.Comma))
173
if (data
[
index] == MailBnfHelper.EndSquareBracket)
215
if (data
[
index] == MailBnfHelper.Quote)
228
MailBnfHelper.Whitespace.Contains(data
[
index]) // < local@domain >
229
|| data
[
index] == MailBnfHelper.EndComment // <(comment)local@domain>
230
|| (expectAngleBracket && data
[
index] == MailBnfHelper.StartAngleBracket) // <local@domain>
231
|| (expectMultipleAddresses && data
[
index] == MailBnfHelper.Comma) // local@dom,local@dom
234
|| data
[
index] == MailBnfHelper.Quote // "display"local@domain
238
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
277
if (firstNonCommentIndex >= 0 && data
[
firstNonCommentIndex] == MailBnfHelper.Quote)
282
Debug.Assert(data
[
index + 1] == MailBnfHelper.Quote, "Mis-alligned index: " + index);
293
if (index >= 0 && !(expectMultipleAddresses && data
[
index] == MailBnfHelper.Comma))
296
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
307
Debug.Assert(index < 0 || data
[
index] == MailBnfHelper.Comma, "Mis-alligned index: " + index);
net\System\Net\mail\MailBnfHelper.cs (38)
146
if (data
[
offset] > 127)
147
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
offset]));
148
else if (data
[
offset] == '\\' && comments > 0)
150
else if (data
[
offset] == '(')
152
else if (data
[
offset] == ')')
154
else if (data
[
offset] != ' ' && data
[
offset] != '\t' && comments == 0)
158
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
offset]));
170
if (data
[
offset] > Ftext.Length || !Ftext[data
[
offset]])
191
if (data
[
offset] == '\\')
196
else if (data
[
offset] == '"')
202
else if (data
[
offset] == '=' &&
204
data
[
offset + 1] == '\r' &&
205
data
[
offset + 2] == '\n' &&
206
(data
[
offset + 3] == ' ' || data
[
offset + 3] == '\t'))
215
if (data
[
offset] <= Ascii7bitMaxValue && !Qtext[data
[
offset]])
216
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
offset]));
220
else if (data
[
offset] > Ascii7bitMaxValue || !Qtext[data
[
offset]])
222
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
offset]));
245
if (data
[
offset] > Ascii7bitMaxValue)
247
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
offset]));
249
else if (!Ttext[data
[
offset]])
256
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
offset]));
307
if (CheckForUnicode(data
[
offset], allowUnicode))
312
if (!Ttext[data
[
offset]] || data
[
offset] == ' ')
317
if (CheckForUnicode(data
[
offset], allowUnicode))
327
else if (!Qtext[data
[
offset]])
364
if (data
[
i] == '\r' || data
[
i] == '\n'){
377
return (data
[
index] == MailBnfHelper.CR
379
&& data
[
index + 1] == MailBnfHelper.LF
380
&& (data
[
index + 2] == MailBnfHelper.Space
381
|| data
[
index + 2] == MailBnfHelper.Tab));
net\System\Net\mail\QuotedPairReader.cs (6)
43
if (index <= 0 || data
[
index - 1] != MailBnfHelper.Backslash)
58
if (!permitUnicodeEscaping && data
[
index] > MailBnfHelper.Ascii7bitMaxValue)
61
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
78
Debug.Assert(index >= 0 && data
[
index] == MailBnfHelper.Backslash, "index was not a backslash: " + index);
86
} while (index >= 0 && data
[
index] == MailBnfHelper.Backslash);
89
Debug.Assert(index < 0 || data
[
index] != MailBnfHelper.Backslash, "index was a backslash: " + index);
net\System\Net\mail\QuotedStringFormatReader.cs (7)
43
Debug.Assert(data
[
index] == MailBnfHelper.Quote, "Initial char at index " + index + " was not a quote.");
65
else if (data
[
index] == MailBnfHelper.Quote)
71
else if (!IsValidQtext(permitUnicode, data
[
index]))
73
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
122
else if (expectCommaDelimiter && data
[
index] == MailBnfHelper.Comma)
127
else if (!IsValidQtext(permitUnicode, data
[
index]))
129
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
net\System\Net\mail\SmtpClient.cs (1)
190
ch = clientDomainRaw
[
i];
net\System\Net\mail\WhitespaceReader.cs (10)
47
if (data
[
index] == MailBnfHelper.CR && expectCR)
52
else if (data
[
index] == MailBnfHelper.CR || expectCR)
58
else if (data
[
index] == MailBnfHelper.LF)
63
else if (data
[
index] == MailBnfHelper.Space || data
[
index] == MailBnfHelper.Tab)
121
else if (data
[
index] == MailBnfHelper.EndComment)
127
else if (data
[
index] == MailBnfHelper.StartComment)
140
&& (data
[
index] > MailBnfHelper.Ascii7bitMaxValue || MailBnfHelper.Ctext[data
[
index]]))
147
throw new FormatException(SR.GetString(SR.MailHeaderFieldInvalidCharacter, data
[
index]));
net\System\Net\NetWebProxyFinder.cs (3)
444
if (!tryParse || uri.UserInfo.Length > 0 || uri.HostNameType == UriHostNameType.Basic || uri.AbsolutePath.Length != 1 || proxyAuthority
[
proxyAuthority.Length - 1] == '/' || proxyAuthority
[
proxyAuthority.Length - 1] == '#' || proxyAuthority
[
proxyAuthority.Length - 1] == '?')
net\System\Net\NetworkInformation\PhysicalAddress.cs (1)
123
int value = (int)address
[
i];
net\System\Net\SocketPermission.cs (5)
823
if ((hostname[0] == '.') || (hostname
[
len - 1] == '.')) {
831
if (hostname
[
i] == '.') {
834
else if (hostname
[
i] == '*') {
837
else if (!Char.IsDigit(hostname
[
i])) { // Not a digit?
1213
char ch = name
[
i];
net\System\Net\WebHeaderCollection.cs (21)
483
char c = (char) (0x000000ff & (uint) name
[
i]);
548
if ((token
[
i] < 0x20) || (token
[
i] > 0x7e)) {
1110
*newBufferPointer++ = (byte)myString
[
charIndex++];
1133
if (input
[
i] > (char)255) {
1136
else if (input
[
i] > (char)127) {
1144
if (input
[
i] > (char)255) {
1147
rawBytes[i] = (byte)input
[
i];
1798
if (*(pBuffer++) != s
[
j] && CaseInsensitiveAscii.AsciiToLower[*(pBuffer - 1)] != CaseInsensitiveAscii.AsciiToLower[s
[
j]])
1885
if (name
[
j] != s
[
j] && (name
[
j] > 255 || CaseInsensitiveAscii.AsciiToLower[name
[
j]] != CaseInsensitiveAscii.AsciiToLower[s
[
j]]))
2018
myHashCode ^= AsciiToLower[(byte)myString[0]]<<24 ^ AsciiToLower[(byte)myString
[
myHashCode-1]]<<16;
2036
difference = (int)(AsciiToLower[ firstString
[
index] ] - AsciiToLower[ secondString
[
index] ]);
2050
myHashCode ^= AsciiToLower[(byte)myString[0]]<<24 ^ AsciiToLower[(byte)myString
[
myHashCode-1]]<<16;
2069
if (AsciiToLower[firstString
[
index]]!=AsciiToLower[secondString
[
index]]) {
net\System\Net\WebUtility.cs (6)
182
char ch = value
[
i];
189
if (index > 0 && value
[
index] == ';') {
504
char ch = value
[
pos];
512
int h1 = HexToInt(value
[
pos + 1]);
513
int h2 = HexToInt(value
[
pos + 2]);
709
char c = s
[
i];
net\System\URI.cs (58)
307
if (schemeHost
[
i] == '.')
332
char ch = m_String
[
m_Info.Offset.Path];
562
if (relativeStr
[
i] == '/' || relativeStr
[
i] == '\\' || relativeStr
[
i] == '?' || relativeStr
[
i] == '#')
566
else if (relativeStr
[
i] == ':')
1053
: (IsDosPath && (m_String
[
start] == '/' || m_String
[
start] == '\\'))
1066
if (str
[
i] == '/') {
1096
if(m_String
[
start] == '/' || m_String
[
start] == '\\') {
1364
if (name[0] == '[' && name
[
name.Length-1] == ']') {
1502
if ((pattern
[
index] == '%')
1504
char ret = UriHelper.EscapedAscii(pattern
[
index + 1], pattern
[
index + 2]);
1510
return pattern
[
index++];
1539
if ((pattern
[
index] == '%') && UriHelper.EscapedAscii(pattern
[
index + 1], pattern
[
index + 2]) != c_DummyChar) {
1569
if (!(IsAsciiLetterOrDigit(schemeName
[
i])
1570
|| (schemeName
[
i] == '+')
1571
|| (schemeName
[
i] == '-')
1572
|| (schemeName
[
i] == '.'))) {
1821
if (m_String
[
i1] != str
[
i2]) {
1824
if (str
[
i2] == ':') {
1832
if (i1 < m_Info.Offset.Path && m_String
[
i1] != ':') {
1835
if (i2 < end2 && str
[
i2] != ':') {
1965
return (index >= 0 && uriString
[
index] == ':');
2282
while (IsLWS(m_String
[
idx])) {
2292
while(idx < (ushort)(cF & Flags.IndexMask) && (m_String
[
idx] == '/' || m_String
[
idx] == '\\')) {
2302
while (m_String
[
idx++] != ':') {
2308
if (m_String
[
idx] == '\\' || m_String
[
idx+1] == '\\')
2316
while( idx < (ushort)(cF & Flags.IndexMask) && (m_String
[
idx] == '/' || m_String
[
idx] == '\\')) {
2358
while (m_String
[
idx] != '@') {
2541
host
[
i] != m_String
[
m_Info.Offset.Host + i]) {
2656
if ((m_Info.Offset.Host + i) >= m_Info.Offset.End || host
[
i] != m_String
[
m_Info.Offset.Host + i]) {
2680
int val = portStr
[
idx] - '0';
2723
else if (IsDosPath && m_String
[
m_Info.Offset.Path + SecuredPathIndex - 1] == '|') {
2750
else if (IsDosPath && m_String
[
m_Info.Offset.Path + SecuredPathIndex - 1] == '|') {
3145
m_Info.Offset.End > m_Info.Offset.Path && m_String
[
m_Info.Offset.Path] == '/')
3278
if (m_Syntax.SchemeName
[
i] != str[idx + i])
3473
if (origIdx < m_originalUnicodeString.Length && m_originalUnicodeString
[
origIdx] == '?'){
3530
if (origIdx < m_originalUnicodeString.Length && m_originalUnicodeString
[
origIdx] == '#')
4616
if (dosPathIdx != 0 && str
[
dosPathIdx + m_Info.Offset.Path -1] == '|')
5039
if (share
[
i] == '/') {
5208
if ((path1
[
i] != path2
[
i])
5210
|| (Char.ToLower(path1
[
i], CultureInfo.InvariantCulture)
5211
!= Char.ToLower(path2
[
i], CultureInfo.InvariantCulture))))
5215
} else if (path1
[
i] == '/') {
5230
if (path1
[
i] == '/') {
net\System\uribuilder.cs (1)
352
ch = path
[
i];
net\System\UriExt.cs (8)
527
if (idx >= m_Info.Offset.User || m_String
[
idx - 1] == '\\' || m_String
[
idx] == '\\')
533
while (++idx < m_Info.Offset.User && (m_String
[
idx] == '/' || m_String
[
idx] == '\\'))
554
if (IsDosPath && m_String
[
m_Info.Offset.Path + SecuredPathIndex - 1] == '|')
763
if (relativeStr.Length > 0 && (IsLWS(relativeStr[0]) || IsLWS(relativeStr
[
relativeStr.Length - 1])))
1008
while (otherUri.m_String
[
portIndex] != ':' && portIndex > otherUri.m_Info.Offset.Host)
1012
if (otherUri.m_String
[
portIndex] != ':')
regex\system\text\regularexpressions\Regex.cs (1)
699
char ch = name
[
i];
regex\system\text\regularexpressions\RegexBoyerMoore.cs (14)
62
sb.Append(Char.ToLower(pattern
[
i], culture));
100
ch = pattern
[
examine];
110
if (pattern
[
examine] == ch)
121
if (scan == beforefirst || pattern
[
match] != pattern
[
scan]) {
190
ch = pattern
[
examine];
238
Debug.Assert(textinfo.ToLower(_pattern
[
i]) == _pattern
[
i], "pattern should be converted to lower case in constructor!");
239
if( textinfo.ToLower(text
[
index + i]) != _pattern
[
i]) {
306
chMatch = _pattern
[
startmatch];
312
chTest = text
[
test];
338
chTest = text
[
test2];
343
if (chTest != _pattern
[
match]) {
regex\system\text\regularexpressions\RegexCharClass.cs (36)
574
_rangelist.Add(new SingleRange(set
[
i], (char)(set
[
i + 1] - 1)));
578
_rangelist.Add(new SingleRange(set
[
i], Lastchar));
769
return set
[
SETSTART];
777
if (charClass
[
CATEGORYLENGTH] == 0 && charClass
[
FLAGS] == 0 && charClass
[
SETLENGTH] == 0 && !IsSubtraction(charClass))
789
if (set
[
FLAGS] == 0 && set
[
CATEGORYLENGTH] == 0 && set
[
SETLENGTH] == 2 && !IsSubtraction(set) &&
790
(set
[
SETSTART] == Lastchar || set
[
SETSTART]+1 == set
[
SETSTART+1]))
797
if (set
[
FLAGS] == 1 && set
[
CATEGORYLENGTH] == 0 && set
[
SETLENGTH] == 2 && !IsSubtraction(set) &&
798
(set
[
SETSTART] == Lastchar || set
[
SETSTART]+1 == set
[
SETSTART+1]))
805
return (charClass.Length > SETSTART + charClass
[
SETLENGTH] + charClass
[
CATEGORYLENGTH]);
809
return (set != null && set
[
FLAGS] == 1);
835
int mySetLength = set
[
start+SETLENGTH];
836
int myCategoryLength = set
[
start+CATEGORYLENGTH];
849
if (set
[
start+FLAGS] == 1)
870
if (ch < set
[
mid])
899
int curcat = (short) set
[
i];
953
int curcat = (short) category
[
i];
965
curcat = (short) category
[
i];
983
curcat = (short) category
[
i];
996
short ch = (short) category
[
i];
1007
int mySetLength = charClass
[
start+SETLENGTH];
1008
int myCategoryLength = charClass
[
start+CATEGORYLENGTH];
1015
char first = charClass
[
i];
1020
last = (char) (charClass
[
i] - 1);
1031
return new RegexCharClass(charClass
[
start+FLAGS] == 1, ranges, new StringBuilder(charClass.Substring(end, myCategoryLength)), sub);
regex\system\text\regularexpressions\RegexCompiler.cs (4)
1252
chLast = _bmPrefix._pattern
[
last];
1358
Ldc(_bmPrefix._pattern
[
charindex]);
2503
Ldc((int)str
[
i]);
2548
Ldc((int)str
[
i]);
regex\system\text\regularexpressions\RegexFCD.cs (1)
459
PushFC(new RegexFC(node._str
[
node._str.Length - 1], false, false, ci));
regex\system\text\regularexpressions\RegexInterpreter.cs (2)
233
char ch = (runrtl ? runtext[--runtextpos] : runtext
[
runtextpos++]);
321
return runtext
[
j];
regex\system\text\regularexpressions\RegexParser.cs (11)
111
if (IsMetachar(input
[
i])) {
113
char ch = input
[
i];
138
ch = input
[
i];
161
if (input
[
i] == '\\') {
175
while (i < input.Length && input
[
i] != '\\')
1888
sb.Append(Char.ToLower(str
[
i], _culture));
1895
char ch = _pattern
[
pos];
2105
return _pattern
[
_currentPos++];
2130
return _pattern
[
i];
2137
return _pattern
[
_currentPos];
2144
return _pattern
[
_currentPos + i];
security\system\security\cryptography\bigint.cs (3)
453
if (decNum
[
index] > '9' || decNum
[
index] < '0')
456
Add(tmp, (byte) (decNum
[
index] - '0'), ref c);
security\system\security\cryptography\x509\x509utils.cs (9)
236
if (Char.IsWhiteSpace(inputBuffer
[
inputOffset + i])) iCount++;
240
if (!Char.IsWhiteSpace(inputBuffer
[
inputOffset + i])) {
241
rgbOut[iCount++] = inputBuffer
[
inputOffset + i];
252
hex[index] = (byte) ((HexToByte(hexString
[
i]) << 4) | HexToByte(hexString
[
i+1]));
463
if (keyValue[1] != '.' || keyValue
[
len - 1] == '.') // should not end in a dot
469
if (Char.IsDigit(keyValue
[
i]))
471
if (keyValue
[
i] != '.' || keyValue
[
i + 1] == '.') // disallow double dots
services\io\system\io\PatternMatcher.cs (3)
232
nameChar = name
[
nameOffset];
288
exprChar = expression
[
exprOffset];
336
tmpChar = name
[
offset];
services\monitoring\system\diagnosticts\EventLog.cs (4)
1243
if (formatString
[
i] == '%') {
1247
while (i + 1 < formatString.Length && Char.IsDigit(formatString
[
i + 1])) {
1248
sb.Append(formatString
[
i + 1]);
1335
if (msg.Length > 1 && msg
[
msg.Length-1] == '\n')
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (1)
293
char current = id
[
index];
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
1250
if (name
[
i] == '\\')
1252
else if (name
[
i] == '.')
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
587
if (stringA
[
i] != currentChar[i])
sys\system\io\ports\SerialPort.cs (2)
1239
char lastValueChar = value
[
value.Length-1];
1282
if (value
[
value.Length-i] != currentLine[currentLine.Length-i]) {
System.Activities (1)
System\Activities\WorkflowIdentity.cs (1)
251
(char.IsWhiteSpace(value[0]) || char.IsWhiteSpace(value
[
value.Length - 1]));
System.Activities.Presentation (4)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
91
if (nonassemblyQualifedNamespace
[
nonassemblyQualifedNamespace.Length - 1] == ';')
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (2)
176
char currentChar = this.source
[
index];
180
if (index + 1 < this.source.Length && this.source
[
index + 1] == NewLine)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (1)
202
if (result
[
result.Length - 1] != ';')
System.AddIn (1)
System\Addin\Hosting\Utils.cs (1)
159
char lastChar = root
[
root.Length - 1];
System.ComponentModel.DataAnnotations (1)
DataAnnotations\EmailAddressAttribute.cs (1)
44
&& valueAsString
[
valueAsString.Length - 1] != '@');
System.Configuration (13)
parent\misc\ConfigPathUtility.cs (4)
36
ch = configPath
[
examine];
55
if (examine == start + 2 && configPath
[
start + 1] == '.') {
60
if (examine == start + 3 && configPath
[
start + 1] == '.' && configPath
[
start + 2] == '.') {
System\Configuration\BaseConfigurationRecord.cs (1)
3661
if (invalidLastSubPathCharacters.IndexOf(subPath
[
subPath.Length-1]) != -1) {
System\Configuration\UrlPath.cs (6)
50
if (dir
[
lDir - 1] == '\\') {
55
if (subdir
[
lSubdir - 1] == '\\') {
66
if (lSubdir > lDir && subdir
[
lDir] != '\\')
106
if (path
[
lPath - 1] == '/') {
111
if (subpath
[
lSubpath - 1] == '/') {
125
if (lSubpath > lPath && subpath
[
lPath] != '/')
System\Configuration\XmlUtilWriter.cs (2)
135
char ch = s
[
i];
180
char ch = s
[
i];
System.Core (6)
System\Diagnostics\EventSchemaTraceListener.cs (1)
446
switch(str
[
i]) {
System\IO\__Error.cs (1)
126
if ((path
[
path.Length - 1]) == Path.DirectorySeparatorChar) {
System\Security\Cryptography\Xml\ManifestSignedXml.cs (4)
58
byte? upper = HexToByte(hex
[
stringIndex]);
59
byte? lower = HexToByte(hex
[
stringIndex + 1]);
273
byte? upper = HexToByte(hex
[
i]);
274
byte? lower = HexToByte(hex
[
i + 1]);
System.Data (48)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
91
if (nonassemblyQualifedNamespace
[
nonassemblyQualifedNamespace.Length - 1] == ';')
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\SourceTextScanner.cs (2)
176
char currentChar = this.source
[
index];
180
if (index + 1 < this.source.Length && this.source
[
index + 1] == NewLine)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (1)
202
if (result
[
result.Length - 1] != ';')
fx\src\data\System\Data\CodeGen\datacache.cs (2)
50
unc = Char.GetUnicodeCategory(ret
[
i]);
63
ret = ret.Replace(ret
[
i], '_');
fx\src\data\System\Data\Common\DbConnectionOptions.cs (4)
409
bool rootFolderEndsWith = (0 < rootFolderPath.Length) && rootFolderPath
[
rootFolderPath.Length-1] == '\\';
410
bool fileNameStartsWith = (fileNamePosition < value.Length) && value
[
fileNamePosition] == '\\';
612
currentChar = connectionString
[
currentPosition];
733
char tmpChar = keyvalue
[
keyvalue.Length - 1];
fx\src\data\System\Data\Common\MultipartIdentifier.cs (2)
80
char testchar = name
[
index];
95
rightQuoteChar = rightQuote
[
quoteIndex]; // record the corresponding right quote for the left quote
fx\src\data\System\Data\DataTable.cs (5)
2708
if (s1
[
leng1-1] != 0x20 && s1
[
leng1-1] != 0x3000) // 0x3000 is Ideographic Whitespace
2712
if (s2
[
leng2-1] != 0x20 && s2
[
leng2-1] != 0x3000)
2940
for (i = 0; (i < name.Length) && (0x3000 > name
[
i]); ++i);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (2)
2517
Debug.Assert (str
[
str.Length-1] == quoteChar, "Missing quote at end of string that begins with quote");
2518
if (str.Length > 1 && str
[
str.Length-1] == quoteChar) {
fx\src\data\System\Data\Odbc\OdbcUtils.cs (14)
376
while((_idx < _len) && Char.IsWhiteSpace(_sqlstatement
[
_idx])) {
392
if (IsValidNameChar(_sqlstatement
[
curidx])) {
393
while ((curidx < _len) && IsValidNameChar(_sqlstatement
[
curidx])) {
394
_token.Append(_sqlstatement
[
curidx]);
399
char currentchar = _sqlstatement
[
curidx];
432
Debug.Assert((_sqlstatement
[
curidx] == '['), "GetTokenFromQuote: character at starting position must be same as quotechar");
434
_token.Append(_sqlstatement
[
curidx]);
436
if (_sqlstatement
[
curidx-1] == ']')
447
Debug.Assert((_sqlstatement
[
curidx] == _quote), "GetTokenFromQuote: character at starting position must be same as quotechar");
451
_token.Append(_sqlstatement
[
localidx]); // append current character to token
452
if (_sqlstatement
[
localidx] == _quote) {
454
if (_sqlstatement
[
localidx-1] != _escape) { // if it's not escape we look at the following char
456
if (_sqlstatement
[
localidx+1] != _quote) {
496
while((tempidx < _len) && Char.IsWhiteSpace(_sqlstatement
[
tempidx])) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1261
Debug.Assert(name
[
l - 1] == ']', "Name starts with [ but doesn not end with ]");
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2621
if ('[' == part[0] && ']' == part
[
part.Length-1]) {
2638
if (Char.IsDigit(sproc
[
sproc.Length-1])) { // If last char is a digit, parse.
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1395
Debug.Assert(errorMessage.Length>iColon+1 && errorMessage
[
iColon+1]==' ', "Expecting a space after the ':' character");
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (1)
102
s = (int) password
[
i];
fx\src\data\System\Data\SQLTypes\SQLString.cs (10)
446
while (cwchX > 0 && rgchX
[
cwchX - 1] == ' ')
448
while (cwchY > 0 && rgchY
[
cwchY - 1] == ' ')
860
if (rgDataX
[
i] < rgDataY
[
i])
862
else if (rgDataX
[
i] > rgDataY
[
i])
873
if (rgDataY
[
i] != chSpace)
874
return (chSpace > rgDataY
[
i]) ? 1 : -1;
879
if (rgDataX
[
i] != chSpace)
880
return (rgDataX
[
i] > chSpace) ? 1 : -1;
System.Data.Entity (23)
System\Data\Common\EntitySql\AST\Literal.cs (4)
397
char delimiter = stringLiteralValue
[
startIndex - 1];
465
binaryValue[arrayIndex++] = (byte)HexDigitToBinaryValue(binaryLiteralValue
[
startIndex++]);
470
binaryValue[arrayIndex++] = (byte)((HexDigitToBinaryValue(binaryLiteralValue
[
startIndex++]) << 4) | HexDigitToBinaryValue(binaryLiteralValue
[
startIndex++]));
System\Data\Common\EntitySql\CqlLexerHelpers.cs (8)
351
if (symbol
[
symbol.Length - 1] == ']')
644
isIdentifierASCII = isIdentifierASCII && symbol
[
i] < 0x80;
645
if (!isIdentifierASCII && !IsLetter(symbol
[
i]) && !IsDigit(symbol
[
i]) && (symbol
[
i] != '_'))
746
bValid = (guidValue
[
startIndex + i] == '-');
750
bValid = isHexDigit(guidValue
[
startIndex + i]);
775
bValid = isHexDigit(binaryValue
[
i++]);
System\Data\Common\Internal\MultipartIdentifier.cs (2)
75
char testchar = name
[
index];
95
rightQuoteChar = rightQuote
[
quoteIndex]; // record the corresponding right quote for the left quote
System\Data\Common\Utils\StringUtil.cs (2)
175
if (!Char.IsWhiteSpace(value
[
i]))
196
if (!Char.IsWhiteSpace(value
[
i]))
System\Data\EntityClient\DbConnectionOptions.cs (4)
127
bool rootFolderEndsWith = (0 < rootFolderPath.Length) && rootFolderPath
[
rootFolderPath.Length - 1] == '\\';
128
bool fileNameStartsWith = (fileNamePosition < value.Length) && value
[
fileNamePosition] == '\\';
215
currentChar = connectionString
[
currentPosition];
325
char tmpChar = keyvalue
[
keyvalue.Length - 1];
System\Data\EntitySqlException.cs (1)
217
Char c = commandText
[
i];
System\Data\Query\PlanCompiler\TransformationRules.cs (2)
1113
if (pattern
[
i] != str
[
i])
System.Data.Entity.Design (5)
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
107
if (!Char.IsWhiteSpace(value
[
i]))
128
if (!Char.IsWhiteSpace(value
[
i]))
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
260
if (leadingBlanks
[
j] != leadingBlanks2
[
j])
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
648
if ( (index == 0 || char.IsWhiteSpace(line, index-1)) && (indexAfter == line.Length || (ch=line
[
indexAfter]) == '(' || char.IsWhiteSpace(ch)) )
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
840
if (start < stype.Length && stype
[
start] == '(') {
System.Data.Services (45)
parent\Client\System\Data\Services\Client\BatchStream.cs (2)
1125
if ((char)value == boundary1
[
boundary1Index])
1140
if ((null != boundary2) && ((char)value == boundary2
[
boundary2Index]))
System\Data\Services\HttpProcessUtility.cs (17)
379
if (versionText
[
i] == '.')
388
else if (versionText
[
i] < '0' || versionText
[
i] > '9')
480
if (text
[
textIndex] != '/')
515
if (text
[
textIndex] != ';')
542
while (textIndex < text.Length && IsHttpToken(text
[
textIndex]))
645
if (text
[
textIndex] == ',')
651
if (text
[
textIndex] != ';')
687
if (text
[
textIndex] != '=')
726
if (headerText
[
textIndex] == '\"')
735
char currentChar = headerText
[
textIndex];
758
currentChar = headerText
[
textIndex];
792
char digit = text
[
textIndex++];
806
if (textIndex < text.Length && text
[
textIndex] == '.')
813
char c = text
[
textIndex];
868
if (headerValue
[
headerIndex] == ',')
898
char afterNameChar = headerValue
[
headerNameEnd];
System\Data\Services\Parsing\ExpressionLexer.cs (4)
139
if (hasNext && Char.IsDigit(this.text
[
this.textPos + 1]))
152
else if (hasNext && this.text
[
tokenPos + 1] == XmlConstants.XmlInfinityLiteral[0])
467
this.ch = this.textPos < this.textLen ? this.text
[
this.textPos] : '\0';
567
this.ch = this.textPos < this.textLen ? this.text
[
this.textPos] : '\0';
System\Data\Services\Parsing\WebConvert.cs (10)
57
hexBuilder.Append(HexValues
[
byteArray[i] >> 4]);
58
hexBuilder.Append(HexValues
[
byteArray[i] & 0x0F]);
77
if (text.Length < 2 || text[0] != '\'' || text
[
text.Length - 1] != '\'')
91
else if (match == text.Length - 2 || text
[
match + 1] != '\'')
209
Debug.Assert(text
[
text.Length - 1] == '\'', "text should end with '\''.");
221
Debug.Assert(i + 1 < s.Length && s
[
i + 1] == '\'', @"Each single quote should be propertly escaped with double single quotes.");
261
char ch0 = text
[
textIndex];
262
char ch1 = text
[
textIndex + 1];
582
if (quote != '\'' || text
[
text.Length - 1] != quote)
598
if (s.Length < i + 1 || s
[
i] != quote)
System\Data\Services\RequestUriProcessor.cs (3)
351
if (segment
[
segment.Length - 1] == '/')
975
while (filterStart < segment.Length && segment
[
filterStart] != '(')
1102
WebUtil.CheckSyntaxValid(filter.Length > 0 && filter[0] == '(' && filter
[
filter.Length - 1] == ')');
System\Data\Services\Serializers\DataStringEscapeBuilder.cs (3)
76
char current = this.input
[
this.index];
114
if (this.input
[
this.index] == quoteStart)
123
this.quotedDataBuilder.Append(this.input
[
this.index]);
System\Data\Services\Serializers\JsonWriter.cs (1)
346
char c = s
[
i];
System\Data\Services\Serializers\XmlDocumentSerializer.cs (1)
54
Debug.Assert(baseUri.AbsoluteUri
[
baseUri.AbsoluteUri.Length - 1] == '/', "baseUri(" + baseUri.AbsoluteUri + ") ends with '/'");
System\Data\Services\WebUtil.cs (4)
319
if (lastBaseSegment.Length > 0 && lastBaseSegment
[
lastBaseSegment.Length - 1] != '/')
826
if (etag.StartsWith(XmlConstants.HttpWeakETagPrefix, StringComparison.Ordinal) && etag
[
etag.Length - 1] == '"')
830
else if (!allowStrongEtag || etag[0] != '"' || etag
[
etag.Length - 1] != '"')
842
if (etag
[
i] == '"')
System.Data.Services.Client (17)
parent\Server\System\Data\Services\HttpProcessUtility.cs (10)
379
if (versionText
[
i] == '.')
388
else if (versionText
[
i] < '0' || versionText
[
i] > '9')
480
if (text
[
textIndex] != '/')
515
if (text
[
textIndex] != ';')
542
while (textIndex < text.Length && IsHttpToken(text
[
textIndex]))
687
if (text
[
textIndex] != '=')
726
if (headerText
[
textIndex] == '\"')
735
char currentChar = headerText
[
textIndex];
758
currentChar = headerText
[
textIndex];
parent\Server\System\Data\Services\Parsing\WebConvert.cs (2)
57
hexBuilder.Append(HexValues
[
byteArray[i] >> 4]);
58
hexBuilder.Append(HexValues
[
byteArray[i] & 0x0F]);
System\Data\Services\Client\BatchStream.cs (2)
1125
if ((char)value == boundary1
[
boundary1Index])
1140
if ((null != boundary2) && ((char)value == boundary2
[
boundary2Index]))
System\Data\Services\Client\DataServiceContext.cs (3)
2503
Char.IsWhiteSpace(convertedValue
[
convertedValue.Length - 1]))
2804
stream.WriteByte((byte)NewLine
[
kk]);
3018
stream.WriteByte((byte)NewLine
[
kk]);
System.Data.Services.Design (7)
System\Data\Common\Utils\StringUtil.cs (2)
36
if (!Char.IsWhiteSpace(value
[
i]))
56
if (!Char.IsWhiteSpace(value
[
i]))
System\Data\EntityModel\DataServiceBuildProvider.cs (2)
249
if (Char.IsLetterOrDigit(typeName
[
i]))
250
sb.Append(typeName
[
i]);
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
257
if (leadingBlanks
[
j] != leadingBlanks2
[
j])
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
644
if ( (index == 0 || char.IsWhiteSpace(line, index-1)) && (indexAfter == line.Length || (ch=line
[
indexAfter]) == '(' || char.IsWhiteSpace(ch)) )
System.Data.SqlXml (46)
System\Xml\Xsl\Runtime\DecimalFormatter.cs (2)
67
char ch = formatPicture
[
i];
219
char ch = result
[
i];
System\Xml\Xsl\Runtime\XslNumber.cs (4)
54
char ch = formatString
[
startIdx];
76
if (formatString
[
idx] == ++ch) {
129
bool isAlphaNumeric = CharUtil.IsAlphaNumeric(formatString
[
idxStart]);
138
if (idx == formatString.Length || isAlphaNumeric != CharUtil.IsAlphaNumeric(formatString
[
idx])) {
System\Xml\Xsl\Runtime\XsltFunctions.cs (7)
98
if (xmlCharType.IsWhiteSpace(value
[
idx])) {
103
else if (value
[
idx] != ' ' || idxSpace == idx) {
155
int index = mapString.IndexOf(arg
[
i]);
158
sb.Append(arg
[
i]);
161
sb.Append(transString
[
index]);
175
return (lang.Length == value.Length || lang
[
value.Length] == '-');
386
switch (options
[
idx]) {
System\Xml\Xsl\XPath\XPathScanner.cs (1)
103
curChar = xpathExpr
[
curIndex];
System\Xml\Xsl\XslException.cs (1)
174
if (message.Length > 0 && !XmlCharType.Instance.IsWhiteSpace(message
[
message.Length - 1])) {
System\Xml\Xsl\Xslt\QilGenerator.cs (3)
843
char ch = source
[
i];
846
if (i + 1 < source.Length && source
[
i + 1] == ch) { // "{{" or "}}"
866
Debug.Assert(i == source.Length || source
[
i] == '{');
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (3)
840
if (pos < source.Length && source
[
pos] == '{') { // "{{"
1133
if (xpath
[
t] == '/' || xpath
[
t - 1] == '/') {
System\Xml\Xsl\XsltOld\Compiler.cs (5)
853
char ch = avt
[
i];
855
if (i + 1 < avtLength && avt
[
i + 1] == '{') { // "{{"
863
if (i + 1 < avtLength && avt
[
i + 1] == '}') { // "}}"
882
Debug.Assert(avt
[
start] == '{' , "We calling getXPathLex() only after we realy meet {");
886
char ch = avt
[
i];
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
400
if (0 <= idx && name
[
idx] == ':' && name
[
idx + 1] == '*') {
System\Xml\Xsl\XsltOld\NumberAction.cs (6)
510
char wch = wsToken
[
startLen];
526
if (wsToken
[
startLen] != (char)(wch + 1)) {
535
switch ((int)wsToken
[
startLen]) {
565
if (tokLen > 1 && wsToken
[
startLen + 1] == 0x5b50) {
605
bool lastAlphaNumeric = CharUtil.IsAlphaNumeric(formatString
[
length]);
616
bool currentchar = length < formatString.Length ? CharUtil.IsAlphaNumeric(formatString
[
length]) : !lastAlphaNumeric;
System\Xml\Xsl\XsltOld\PrefixQname.cs (1)
45
if (qname
[
position] == ':') {
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (2)
121
while (position < nameLength && xmlCharType.IsWhiteSpace(name
[
position])) {
135
while (position < nameLength && xmlCharType.IsWhiteSpace(name
[
position])) {
System\Xml\Xsl\XsltOld\RecordBuilder.cs (2)
534
switch (comment
[
index]) {
577
switch (pi
[
index]) {
System\Xml\Xsl\XsltOld\SequentialOutput.cs (7)
489
char ch = value
[
i];
493
if(i != length && value
[
i] == '{') { // &{ hasn't to be encoded in HTML output.
517
char ch = value
[
i];
521
if(i != length && value
[
i] == '{') { // &{ hasn't to be encoded in HTML output.
571
Write(value
[
pos]);
575
char badChar = value
[
pos];
593
Write(value
[
pos]);
System.Drawing (5)
commonui\System\Drawing\ColorConverter.cs (1)
158
if (text.Length >= 2 && (text[0] == '\'' || text[0] == '"') && text[0] == text
[
text.Length -1]) {
commonui\System\Drawing\FontConverter.cs (1)
466
if (Char.IsLetter(text
[
splitPoint])) {
misc\DebugHandleTracker.cs (3)
392
while (t < tokenLength && str
[
s + t] == token
[
t]) {
437
while (endIndex < length && ((ch = releventStack
[
endIndex]) == '\r' || ch == '\n')) {
System.IdentityModel (10)
System\IdentityModel\CanonicalFormWriter.cs (1)
38
char c = s
[
i];
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
420
Delimiter = x509ExtensionFormattedString
[
delimiterIndex];
432
if (x509ExtensionFormattedString
[
i] == Identifier[0])
System\IdentityModel\SecurityUtils.cs (3)
551
if (length >= 3 && hexString
[
i + 2] == ' ')
576
rawdigit = ConvertHexDigit(hexString
[
i]);
577
digit = ConvertHexDigit(hexString
[
i + 1]);
System\IdentityModel\XmlUtil.cs (4)
59
for (i = s.Length; i > 0 && IsWhitespace(s
[
i - 1]); i--);
72
for (i = 0; i < s.Length && IsWhitespace(s
[
i]); i++);
85
for (i = 0; i < s.Length && IsWhitespace(s
[
i]); i++);
92
for (j = s.Length; j > 0 && IsWhitespace(s
[
j - 1]); j--);
System.Management (3)
managementoptions.cs (3)
1339
securePassword.AppendChar(value
[
i]);
1347
tempStr.AppendChar(value
[
i]);
1570
securePassword.AppendChar(password
[
i]);
System.Numerics (9)
System\Numerics\BigNumber.cs (9)
444
char ch = format
[
i];
449
if (i < format.Length && format
[
i] >= '0' && format
[
i] <= '9') {
450
n = format
[
i++] - '0';
451
while (i < format.Length && format
[
i] >= '0' && format
[
i] <= '9') {
452
n = n * 10 + (format
[
i++] - '0');
457
if (i >= format.Length || format
[
i] == '\0') {
651
rgch[--ichDst] = info.NegativeSign
[
i];
System.Runtime.Remoting (12)
channels\core\corechannel.cs (1)
767
if (uri
[
appName.Length] == '/')
channels\core\stringhelper.cs (2)
44
if (ToLowerAscii(str
[
i]) != asciiPrefix
[
i])
channels\http\httpchannelhelper.cs (1)
121
if (uri
[
start] == '/')
metadata\wsdlparser.cs (7)
59
char endChar = outputDir
[
length-1];
2374
if (value
[
i] == '\"')
2377
vsb.Append(value
[
i]);
2481
char c = ident
[
i];
2556
switch(arraybrackets
[
i])
6418
if (Char.IsDigit(value
[
i]))
6421
outChar[i] = value
[
i];
metadata\wsdlwriter.cs (1)
2497
if (methodName
[
i] == '.')
System.Runtime.Serialization (62)
System\Runtime\Serialization\CodeExporter.cs (2)
1403
char c = identifier
[
i];
1536
char c = fragment
[
i];
System\Runtime\Serialization\DataContract.cs (4)
1378
char ch = localName
[
i];
1979
char ch = format
[
i];
1985
if (format
[
i] == '}')
1989
if (format
[
start] == '#' && i == (start + 1))
System\Runtime\Serialization\EnumDataContract.cs (3)
390
if (stringValue
[
i] != ' ')
398
if (stringValue
[
i] == ' ')
404
if (stringValue
[
i] != ' ')
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
328
if (XmlJsonWriter.CharacterNeedsEscaping(jsonName
[
i]))
System\Runtime\Serialization\Json\XmlJsonReader.cs (5)
1644
if (val
[
i] == '\\')
1655
XmlExceptionHelper.ThrowXmlException(this, new XmlException(SR.GetString(SR.JsonEncounteredUnexpectedCharacter, val
[
i])));
1657
switch (val
[
i])
1663
sb.Append(val
[
i]);
1684
new XmlException(SR.GetString(SR.JsonEncounteredUnexpectedCharacter, val
[
i])));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
1245
char c = ws
[
i];
System\Xml\ValueHandle.cs (3)
554
Fx.Assert(str
[
i] < 128, "");
556
if (ch == str
[
i])
559
if (checkLower && char.ToLowerInvariant((char)ch) == str
[
i])
System\Xml\XmlBaseWriter.cs (3)
387
else if (text.IndexOf("--", StringComparison.Ordinal) != -1 || (text.Length > 0 && text
[
text.Length - 1] == '-'))
608
if (!IsWhitespace(s
[
i]))
822
char c = whitespace
[
i];
System\Xml\XmlBufferReader.cs (2)
877
if (!XmlConverter.IsWhitespace(s
[
i]))
990
if (s2
[
i] != (char)b)
System\Xml\XmlConverter.cs (7)
1033
Fx.Assert(s
[
i] < 128, "");
1034
buffer[offset++] = (byte)s
[
i];
1128
if (!IsWhitespace(s
[
i]))
1144
if (IsWhitespace(s
[
i]))
1155
char ch = s
[
i];
1167
for (i = 0; i < s.Length && IsWhitespace(s
[
i]); i++);
1170
for (j = s.Length; j > 0 && IsWhitespace(s
[
j - 1]); j--);
System\Xml\XmlMtomReader.cs (30)
2376
if (offset >= Value.Length || Value
[
offset++] != '/')
2382
if (offset >= Value.Length || Value
[
offset++] != ';')
2389
if (paramAttribute == null || offset >= Value.Length || Value
[
offset++] != '=')
2410
if (startInfo
[
startInfoOffset] == ';')
2419
if (paramAttribute == null || startInfoOffset >= startInfo.Length || startInfo
[
startInfoOffset++] != '=')
2554
if ((!MailBnfHelper.SkipCFWS(Value, ref offset) || offset >= Value.Length || Value
[
offset++] != '.') || !MailBnfHelper.SkipCFWS(Value, ref offset))
3054
if (data
[
offset] > 127)
3055
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.MimeHeaderInvalidCharacter, data
[
offset], ((int)data
[
offset]).ToString("X", CultureInfo.InvariantCulture))));
3056
else if (data
[
offset] == '\\' && comments > 0)
3058
else if (data
[
offset] == '(')
3060
else if (data
[
offset] == ')')
3062
else if (data
[
offset] != ' ' && data
[
offset] != '\t' && comments == 0)
3075
if (data
[
offset] == '\\')
3081
else if (data
[
offset] == '"')
3087
else if (!(data
[
offset] < s_fqtext.Length && s_fqtext[data
[
offset]]))
3089
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.MimeHeaderInvalidCharacter, data
[
offset], ((int)data
[
offset]).ToString("X", CultureInfo.InvariantCulture))));
3108
if (offset < data.Length && data
[
offset] == '"')
3119
if (data
[
offset] > s_ttext.Length)
3121
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.MimeHeaderInvalidCharacter, data
[
offset], ((int)data
[
offset]).ToString("X", CultureInfo.InvariantCulture))));
3123
else if (!s_ttext[data
[
offset]])
3135
for (; offset < data.Length && data
[
offset] < s_digits.Length && s_digits[data
[
offset]]; offset++);
3143
if (length == 0 || length > 70 || data
[
length - 1] == ' ')
3148
if (!(data
[
i] < s_boundary.Length && s_boundary[data
[
i]]))
System\Xml\XmlMtomWriter.cs (1)
1219
char c = value
[
index + i];
System.Security (8)
system\security\cryptography\bigint.cs (3)
456
if (decNum
[
index] > '9' || decNum
[
index] < '0')
459
Add(tmp, (byte) (decNum
[
index] - '0'), ref c);
system\security\cryptography\x509\x509utils.cs (2)
107
hex[index] = (byte) ((HexToByte(hexString
[
i]) << 4) | HexToByte(hexString
[
i+1]));
system\security\cryptography\xml\utils.cs (3)
134
if (Char.IsWhiteSpace(inputBuffer
[
inputOffset + i])) iCount++;
138
if (!Char.IsWhiteSpace(inputBuffer
[
inputOffset + i])) {
139
rgbOut[iCount++] = inputBuffer
[
inputOffset + i];
System.ServiceModel (68)
System\ServiceModel\Channels\Addressing.cs (1)
95
if (act.Length > 0 && (act[0] <= 32 || act
[
act.Length - 1] <= 32))
System\ServiceModel\Channels\BaseUriWithWildcard.cs (5)
114
if (parsingIPv6Address && binding
[
i] == endIPv6Address)
118
else if (binding
[
i] == startIPv6Address)
122
else if (!parsingIPv6Address && binding
[
i] == splitChar)
266
s1
[
s1.Length - 1] != segmentDelimiter &&
267
s2
[
s1.Length] != segmentDelimiter)
System\ServiceModel\Channels\ContextDictionary.cs (1)
205
char currentCharacter = key
[
counter];
System\ServiceModel\Channels\ContextProtocol.cs (1)
121
if (value.Length > 1 && (value[0] == '"') && (value
[
value.Length - 1] == '"'))
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
327
if (action.Length >= 2 && action[0] == '"' && action
[
action.Length - 1] == '"')
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (3)
315
char c = (char)(0x000000ff & (uint)name
[
i]);
385
if ((token
[
i] < 0x20) || (token
[
i] > 0x7e))
System\ServiceModel\Channels\MessageEncoder.cs (5)
133
contentType
[
supportedContentType.Length] == ';')
145
char ch = contentType
[
supportedContentType.Length];
156
if (ch == '\r' && contentType.Length > supportedContentType.Length + 1 && contentType
[
i + 1] == '\n')
159
ch = contentType
[
i];
168
ch = contentType
[
i];
System\ServiceModel\Channels\MsmqBindingFilter.cs (1)
23
if (this.prefix.Length > 0 && this.prefix
[
this.prefix.Length - 1] != '/')
System\ServiceModel\Channels\MsmqUri.cs (1)
111
else if ('/' == relativePath
[
privatePart.Length])
System\ServiceModel\Channels\TextMessageEncoder.cs (7)
141
&& contentType
[
semiColonIndex + 2] == 'c'
155
if (contentType
[
i] == ';')
161
if (contentType
[
i] == '\n')
163
if (i == semiColonIndex || contentType
[
i - 1] != '\r')
172
if (contentType
[
i] != ' '
173
&& contentType
[
i] != '\t')
199
if (charSet.Length > 2 && charSet[0] == '"' && charSet
[
charSet.Length - 1] == '"')
System\ServiceModel\Channels\UriPrefixTable.cs (1)
372
while (this.segmentStartAt < this.segment.Length && this.segment
[
this.segmentStartAt] == '/')
System\ServiceModel\ComIntegration\MonikerUtility.cs (7)
46
switch (moniker
[
index])
51
char quoteToCompare = moniker
[
index];
57
if (moniker
[
index] == quoteToCompare)
60
if ((index < (moniker.Length - 1)) && (moniker
[
index + 1] == quoteToCompare))
71
value.Append(moniker
[
index]);
107
for (; (index < moniker.Length) && (moniker
[
index] != ','); index++)
108
value.Append(moniker
[
index]);
System\ServiceModel\Description\ConfigLoader.cs (3)
395
if (rawAddress
[
colonIndex + 1] == '/' &&
396
rawAddress
[
colonIndex + 2] == '/' &&
397
rawAddress
[
colonIndex + 3] == '*')
System\ServiceModel\Description\ServiceReflector.cs (1)
192
char ch = localName
[
i];
System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
99
char c = identifier
[
i];
System\ServiceModel\Dispatcher\QueryFunctions.cs (4)
804
else if (docLang.Length > 0 && lang.Length < docLang.Length && docLang.StartsWith(lang, StringComparison.Ordinal) && docLang
[
lang.Length] == '-')
1224
char c = source
[
i];
1232
builder.Append(values
[
idx]);
1259
char c = str
[
i];
System\ServiceModel\Dispatcher\QueryPrefixOp.cs (6)
173
if (compareString
[
offset] != this.segmentFirstChar)
184
if (compareString
[
iCompare] != this.segmentTail
[
iSegment])
214
char matchChar = matchString
[
offset];
338
this.segmentFirstChar = segmentString
[
offset];
507
this.segmentIndex = this.segment.GetChildPosition(this.prefix
[
this.offset]);
System\ServiceModel\Dispatcher\XPathLexer.cs (4)
208
for (int i = ranges
[
p], last = ranges
[
p + 1]; i <= last; i++)
520
this.ch = this.xpath
[
this.currChar];
561
return this.xpath
[
peekChar];
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
638
if (this.xpath
[
tmp] == '$')
System\ServiceModel\EndpointAddress.cs (3)
387
int u1Len = (u1Path.Length > 0 && u1Path
[
u1Path.Length - 1] == '/') ? u1Path.Length - 1 : u1Path.Length;
388
int u2Len = (u2Path.Length > 0 && u2Path
[
u2Path.Length - 1] == '/') ? u2Path.Length - 1 : u2Path.Length;
417
if (uriString.Length > 0 && uriString
[
uriString.Length - 1] != '/')
System\ServiceModel\Security\XmlHelper.cs (2)
320
char c = idPrefix
[
i];
323
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", SR.GetString(SR.InValidateId, idPrefix
[
i])));
System\ServiceModel\ServiceHost.cs (2)
706
if (path
[
i] != '/' && path
[
i] != '\\')
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
668
while (dateTimeString.Length > i && char.IsDigit(dateTimeString
[
i]))
System\ServiceModel\XmlUtil.cs (4)
53
for (i = s.Length; i > 0 && IsWhitespace(s
[
i - 1]); i--);
66
for (i = 0; i < s.Length && IsWhitespace(s
[
i]); i++);
79
for (i = 0; i < s.Length && IsWhitespace(s
[
i]); i++);
87
for (j = s.Length; j > 0 && IsWhitespace(s
[
j - 1]); j--);
System\UriTemplateCompoundPathSegment.cs (1)
446
reversedString[i] = stringToReverse
[
stringToReverse.Length - i - 1];
System\UriTemplateTable.cs (1)
470
if (uriPath.Length > basePath.Length && !basePath.EndsWith("/", StringComparison.Ordinal) && uriPath
[
basePath.Length] != '/')
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\ServiceParser.cs (3)
892
if (text
[
offset] == '\r' || (text
[
offset] == '\n' && (offset == 0 || text
[
offset - 1] != '\r')))
System.ServiceModel.Internals (16)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
274
char ch = text
[
i];
System\Runtime\Diagnostics\EventLogger.cs (4)
369
char c = eventLogParameter
[
i];
386
if (eventLogParameter
[
i + 1] < '0' || eventLogParameter
[
i + 1] > '9')
398
parameterBuilder.Append(eventLogParameter
[
j]);
System\Runtime\UrlUtility.cs (11)
93
char ch = s
[
i];
291
char ch = s
[
pos];
299
if (s
[
pos + 1] == 'u' && pos < count - 5)
301
int h1 = HexToInt(s
[
pos + 2]);
302
int h2 = HexToInt(s
[
pos + 3]);
303
int h3 = HexToInt(s
[
pos + 4]);
304
int h4 = HexToInt(s
[
pos + 5]);
318
int h1 = HexToInt(s
[
pos + 1]);
319
int h2 = HexToInt(s
[
pos + 2]);
509
char ch = s
[
i];
554
if (i == l - 1 && s
[
i] == '&')
System.ServiceModel.Web (20)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
40
char c = fragment
[
i];
System\ServiceModel\Web\CachingParameterInspector.cs (7)
149
(sqlDependencyString
[
currentIndex] == escapeChar))
157
(sqlDependencyString
[
currentIndex] == seperatorChar))
180
if (sqlDependencyString
[
currentIndex] == tableDbSeperatorChar)
219
if (((str
[
currentIndex] != escapeChar) &&
220
(str
[
currentIndex] != tableDbSeperatorChar)) &&
221
(str
[
currentIndex] != seperatorChar))
227
else if (str
[
currentIndex] == escapeChar)
System\ServiceModel\Web\OutgoingWebResponseContext.cs (4)
254
bool endsWithQuote = entityTag
[
lastEtagIndex] == '\"';
275
if (entityTag
[
x] == '\"' && entityTag
[
x - 1] != '\\')
286
if (!startsWithQuote && endsWithQuote && entityTag
[
lastEtagIndex - 1] != '\\')
System\ServiceModel\Web\Utility.cs (8)
62
if (former
[
former.Length - 1] == '/' && latter[0] == '/')
69
if (former
[
former.Length - 1] != '/' && latter[0] != '/')
116
while (char.IsWhiteSpace(str
[
startIndex]) || str
[
startIndex] == ',')
130
if (str
[
endIndex] == '\"' &&
131
(!insideQuotes || endIndex == 0 || str
[
endIndex - 1] != '\\'))
135
else if (str
[
endIndex] == ',' && !insideQuotes)
145
while (char.IsWhiteSpace(str
[
endIndex - 1]))
System.Transactions (1)
System\Transactions\Trace\DiagnosticTrace.cs (1)
768
char ch = text
[
i];
System.Web (193)
Cache\SqlCacheDependency.cs (7)
312
if (s
[
i] != '\\' && s
[
i] != ':' && s
[
i] != ';') {
320
if (s
[
i] == '\\') {
353
if (i != outputCacheString.Length && outputCacheString
[
i] == '\\') {
359
if (i == outputCacheString.Length || outputCacheString
[
i] == ';' ) {
392
if (outputCacheString
[
i] == ':') {
CachedPathData.cs (2)
561
if (_physicalPath
[
_physicalPath.Length-1] == System.IO.Path.DirectorySeparatorChar
568
if (physicalPath
[
physicalPath.Length-1] == System.IO.Path.DirectorySeparatorChar
Configuration\AuthorizationRule.cs (2)
384
throw new ConfigurationErrorsException(SR.GetString(SR.Auth_rule_names_cant_contain_char, User
[
foundIndex].ToString(CultureInfo.InvariantCulture)));
404
throw new ConfigurationErrorsException(SR.GetString(SR.Auth_rule_names_cant_contain_char, Role
[
foundIndex].ToString(CultureInfo.InvariantCulture)));
Configuration\BrowserDefinition.cs (3)
64
if (Char.IsLetterOrDigit(s
[
i]) || s
[
i] == '_') {
65
sb.Append(s
[
i]);
Configuration\ExpressServerConfig.cs (1)
131
if (vpath
[
lenNoTrailingSlash - 1] == '/') {
Configuration\IISMapPath.cs (1)
52
if (!Char.IsDigit(siteName
[
i])) {
Configuration\MachineKeySection.cs (2)
1008
c1 = ahexval[str
[
istr++]];
1028
c2 = ahexval[str
[
istr++]];
Configuration\MetabaseServerConfig.cs (1)
342
if (l == 0 || path
[
l-1] != '/') {
Configuration\ProcessHostServerConfig.cs (1)
121
if (vpath
[
lenNoTrailingSlash - 1] == '/') {
Configuration\UserMapPath.cs (1)
131
if (path
[
l] == '/') {
Configuration\WebConfigurationHost.cs (2)
317
char last = site
[
site.Length - 1];
754
&& (sectionGroupName.Length == SysWebName.Length || sectionGroupName
[
SysWebName.Length] == '/')) {
CrossSiteScriptingValidation.cs (6)
145
switch (s
[
n]) {
148
if (IsAtoZ(s
[
n+1]) || s
[
n+1] == '!' || s
[
n+1] == '/' || s
[
n+1] == '?') return true;
152
if (s
[
n+1] == '#') return true;
FileChangesMonitor.cs (3)
959
if (fileName.Length == dirNameLength || fileName
[
dirNameLength] == Path.DirectorySeparatorChar) {
1507
&& fullPathName
[
_appPathInternal.Length] == Path.DirectorySeparatorChar) {
1572
else if (dirName.Length > specialDirName.Length && dirName
[
specialDirName.Length] == Path.DirectorySeparatorChar) {
Hosting\ApplicationManager.cs (2)
1330
if (!Char.IsWhiteSpace(publicKey
[
i])) {
1331
sb.Append(publicKey
[
i]);
Hosting\HostingEnvironment.cs (1)
1685
else if (path.Length > appPath.Length && path
[
appPath.Length] == '/' &&
Hosting\IIS7WorkerRequest.cs (2)
1262
if ( s
[
ci] == '\n' ) {
1282
while ( ni < l-1 && s
[
ni+1] == ' ' ) {
Hosting\ISAPIWorkerRequest.cs (2)
738
if (s
[
ci] == '\n') {
757
while (ni < l-1 && s
[
ni+1] == ' ') { // continuation of header (ASURT 115064)
HttpClientCertificate.cs (1)
293
if (strAll
[
iStart]=='"') {
HttpContext.cs (1)
497
bool hasTrailingSlash = (path
[
path.Length - 1] == '/');
HttpRequest.cs (14)
331
if (i < l && s
[
i] == ' ')
725
ch = s
[
j];
848
char chPrev = headerValue
[
i-1];
849
char chNext = headerValue
[
i+k];
861
while (i < l && Char.IsWhiteSpace(headerValue
[
i]))
863
if (i >= l || headerValue
[
i] != '=')
866
while (i < l && Char.IsWhiteSpace(headerValue
[
i]))
876
if (i < l && headerValue
[
i] == '"') {
887
if (headerValue
[
j] == ' ' || headerValue
[
j] == ',')
889
if (!AppSettings.UseLegacyMultiValueHeaderHandling && headerValue
[
j] == ';')
1547
|| path
[
pathLength-1] != '/'
2633
string invalidString = new string(requestUrl
[
index], 1);
2670
string invalidString = new string(header
[
index], 1);
HttpResponse.cs (2)
3206
appPathModifier
[
appPathModifier.Length - 1] == '/')) {
3291
if (pos <= 0 || virtualPath
[
pos-1] != '/')
httpserverutility.cs (2)
1170
char ch = s
[
i];
1202
char ch = s
[
i];
HttpValueCollection.cs (2)
172
char ch = s
[
i];
209
if (i == l-1 && s
[
i] == '&')
Management\EventlogProvider.cs (6)
273
if (s
[
i] == '%' && Char.IsDigit(s
[
i+1])) {
283
if (s
[
i] == '%' && Char.IsDigit(s
[
i+1])) {
289
newChars[idx++] = s
[
i];
292
newChars[newChars.Length-1] = s
[
maxIndex];
MimeMapping.cs (1)
79
if (fileName
[
i] == '.') {
ModelBinding\DictionaryHelpers.cs (1)
25
char charAfterPrefix = key
[
prefix.Length];
ModelBinding\ModelBinderUtil.cs (1)
74
if (!Char.IsWhiteSpace(s
[
i])) {
ModelBinding\PrefixContainer.cs (1)
58
switch (testString
[
prefix.Length]) {
MultipartContentParser.cs (1)
160
if (l
[
i1] == '"') {
OutputCacheModule.cs (3)
404
char previousChar = acceptEncoding
[
indexStart-1];
417
nextChar = acceptEncoding
[
indexNextChar];
419
nextChar = acceptEncoding
[
indexNextChar];
parent\parent\parent\misc\ConfigPathUtility.cs (4)
36
ch = configPath
[
examine];
55
if (examine == start + 2 && configPath
[
start + 1] == '.') {
60
if (examine == start + 3 && configPath
[
start + 1] == '.' && configPath
[
start + 2] == '.') {
Routing\RouteParser.cs (3)
30
((startIndex + 1 < segment.Length) && (segment
[
startIndex + 1] != '{'))) {
54
char c = parameterName
[
i];
199
Debug.Assert(url
[
indexOfNextSeparator] == '/', "The separator char itself should always be a '/'.");
Security\ADMembershipProvider.cs (5)
2847
switch (filterValue
[
i]) {
2868
if ((escapeWildChar) || (!(((filterValue.Length - i) >= 3) && (filterValue
[
i + 1] == '2') && ((filterValue
[
i + 2] == 'A') || (filterValue
[
i + 2] == 'a')))))
2876
str.Append(filterValue
[
i]);
Security\AntiXss\SafeList.cs (1)
265
valueAsCharArray[j + 1] = value
[
j];
Security\AntiXss\Utf16StringReader.cs (2)
97
char thisCodeUnit = _input
[
_currentOffset++];
102
char nextCodeUnit = _input
[
_currentOffset];
Security\CookielessHelper.cs (5)
367
if (path
[
startPos] < 'A' || path
[
startPos] > 'Z') // Make sure pattern starts with a capital letter
370
if (path
[
startPos + 1] != '(') // Make sure next char is '('
377
if (path
[
startPos] == ')') { // found it!
383
if (path
[
startPos] == '/') { // Can't contain path separaters
Security\FormsAuthenticationTicketSerializer.cs (1)
268
char c = value
[
i];
State\OutOfProcStateClientManager.cs (1)
153
if (server
[
i] > 0x7F) {
State\SessionIDManager.cs (1)
442
ch = s
[
i];
StaticFileHandler.cs (8)
87
if (physicalPath
[
physicalPath.Length-1] == '.') {
161
int digit = s
[
i] - '0';
196
if (startIndex < rangeHeader.Length && rangeHeader
[
startIndex] == '-') {
221
if (startIndex < rangeHeader.Length && rangeHeader
[
startIndex] == '-') {
258
if (s
[
startIndex] != ',') {
280
while (startIndex < s.Length && s
[
startIndex] == ' ') {
286
while (startIndex < s.Length && s
[
startIndex] <= '9' && s
[
startIndex] >= '0') {
UI\ChtmlTextWriter.cs (2)
151
int ch = text
[
pos];
157
base.Write(text
[
pos]);
UI\ClientScriptManager.cs (1)
929
if ((index >= 0) && (script
[
index] != ';')) {
UI\DataBinder.cs (2)
232
if (((index[0] == '"') && (index
[
index.Length - 1] == '"')) ||
233
((index[0] == '\'') && (index
[
index.Length - 1] == '\''))) {
UI\EventValidationStore.cs (1)
63
char c = s
[
i];
UI\HTMLTextWriter.cs (1)
1282
char ch = text
[
i];
UI\Page.cs (1)
5391
char c = index
[
i];
UI\TemplateParser.cs (9)
2264
if (text.Length > textPos+1 && text
[
textPos+1] == '%') {
2514
for (int i = 0; i < code.Length && Char.IsWhiteSpace(code
[
i]); i++) {
2515
if (code
[
i] == '\r' || (code
[
i] == '\n' && (i == 0 || code
[
i - 1] != '\r'))) {
2519
else if (code
[
i] == '\n') {
2536
for (int i = code.Length - 1; i >= 0 && Char.IsWhiteSpace(code
[
i]); i--) {
2537
if (code
[
i] == '\r' || code
[
i] == '\n')
UI\Util.cs (9)
533
if (text
[
offset] == '\r' || (text
[
offset] == '\n' && (offset == 0 || text
[
offset - 1] != '\r')))
997
if (Char.IsWhiteSpace(s
[
i]))
1009
if (!Char.IsWhiteSpace(s
[
i]))
1058
if (Char.IsLetterOrDigit(s
[
i]))
1059
sb.Append(s
[
i]);
1431
switch (value
[
i]) {
1637
if (length > 0 && value
[
length - 1] != ';') {
UI\WebControls\Adapters\MenuAdapter.cs (3)
58
switch (path
[
i]) {
61
if (i + 1 < path.Length && path
[
i + 1] == '\\') {
602
if (newPath
[
i] == TreeView.InternalPathSeparator) {
UI\WebControls\Menu.cs (1)
2589
if (nodePath
[
i] == TreeView.InternalPathSeparator) {
UI\WebControls\TreeView.cs (6)
2321
if (!Char.IsDigit(s
[
i])) {
2346
switch (value
[
i]) {
2475
char c = expandState
[
index];
3242
bool dataBound = (_callbackEventArgument
[
endIndex + 1] == 't');
3243
bool nodeChecked = (_callbackEventArgument
[
endIndex + 2] == 't');
3309
if (parentIsLast
[
i] == 't') {
UI\WebControls\Unit.cs (1)
116
char ch = trimLcase
[
i];
Util\FileUtil.cs (4)
110
&& filePath
[
appRoot.Length] == Path.DirectorySeparatorChar) {
123
if (length > 3 && path
[
length - 1] == '\\')
193
|| physicalPath
[
idxSlashDots + slashDots.Length] == '\\')) {
290
char lastChar = physicalPath
[
physicalPath.Length - 1];
Util\HttpEncoder.cs (21)
110
char ch = s
[
pos];
113
if (s
[
pos + 1] == 'u') {
114
int h1 = HttpEncoderUtility.HexToInt(s
[
pos + 2]);
115
int h2 = HttpEncoderUtility.HexToInt(s
[
pos + 3]);
116
int h3 = HttpEncoderUtility.HexToInt(s
[
pos + 4]);
117
int h4 = HttpEncoderUtility.HexToInt(s
[
pos + 5]);
248
char ch = value
[
pos];
400
char c = value
[
i];
564
char ch = value
[
pos];
570
if (value
[
pos + 1] == 'u' && pos < count - 5) {
571
int h1 = HttpEncoderUtility.HexToInt(value
[
pos + 2]);
572
int h2 = HttpEncoderUtility.HexToInt(value
[
pos + 3]);
573
int h3 = HttpEncoderUtility.HexToInt(value
[
pos + 4]);
574
int h4 = HttpEncoderUtility.HexToInt(value
[
pos + 5]);
586
int h1 = HttpEncoderUtility.HexToInt(value
[
pos + 1]);
587
int h2 = HttpEncoderUtility.HexToInt(value
[
pos + 2]);
730
char ch = value
[
i];
815
int numPadChars = (int)input
[
len - 1] - (int)'0';
829
char c = input
[
iter];
875
if (base64Str
[
endPos - 1] != '=') // Found a non-padding char!
890
char c = base64Str
[
iter];
Util\ParseHttpDate.cs (1)
169
if (time
[
i+2] == '-' ) { /* First format */
Util\StringUtil.cs (1)
125
return len != 0 && s
[
len - 1] == c;
Util\SymbolEqualComparer.cs (2)
48
char charLeft = sLeft
[
i];
49
char charRight = sRight
[
i];
Util\UriUtil.cs (1)
95
char c = input
[
i];
Util\UrlPath.cs (17)
256
if ((examine == 0 || path
[
examine - 1] == '/')
257
&& (examine + 1 == length || path
[
examine + 1] == '/' ||
258
(path
[
examine + 1] == '.' && (examine + 2 == length || path
[
examine + 2] == '/'))))
277
(examine < 1 || path
[
examine - 1] == '.') &&
278
(start + 1 >= length || path
[
start + 1] == '.')) {
424
char ch = virtualPath
[
i];
453
char ch = virtualPath
[
i];
467
return virtualPath
[
virtualPath.Length - 1] == '/';
477
if (path
[
l-1] != '/')
493
if (l <= 1 || path
[
l-1] != '/') {
528
if (virtualPath2
[
virtualPath2Length - 1] == '/')
533
if (virtualPath1
[
virtualPath2Length] != '/') {
657
if (l == 0 || path
[
l-1] != '\\')
694
if (path
[
lPath - 1] == '/') {
699
if (subpath
[
lSubpath - 1] == '/') {
710
if (lSubpath > lPath && subpath
[
lPath] != '/')
Util\Utf16StringValidator.cs (1)
32
if (Char.IsSurrogate(input
[
i])) {
WorkerRequest.cs (1)
493
if (cacheUrl
[
index] == '/') {
XmlSiteMapProvider.cs (1)
757
roles
[
foundIndex].ToString(CultureInfo.InvariantCulture)), xmlNode);
System.Web.DataVisualization (10)
Common\DataManager\DataPoint.cs (2)
2565
if (result.Length > keyEndIndex && result
[
keyEndIndex] == '{')
2606
if (result.Length > keyEndIndex && result
[
keyEndIndex] == '(')
Common\DataManager\DataSeries.cs (5)
1007
seed += (int)this.Name
[
index];
1220
result
[
keyEndIndex] == 'Y' &&
1221
char.IsDigit(result
[
keyEndIndex + 1]))
1229
if(result.Length > keyEndIndex && result
[
keyEndIndex] == '{')
1336
if(result.Length > keyEndIndex && result
[
keyEndIndex] == '{')
Common\General\LegendColumns.cs (1)
1833
if(resultString
[
charIndex] == '\n')
Common\Utilities\XmlSerializer.cs (1)
1278
else if(info.name
[
info.name.Length - 1] == '*')
WebForm\ChartWebControl.cs (1)
754
if(imageURL
[
indexSEQ] != '(')
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (1)
379
if (name[0] == '[' && name
[
name.Length - 1] == ']')
System.Web.Extensions (7)
Compilation\WCFBuildProvider.cs (2)
509
if (Char.IsLetterOrDigit(typeName
[
i]))
510
sb.Append(typeName
[
i]);
Script\Serialization\JavaScriptString.cs (2)
23
char c = _s
[
_index++];
34
return _s
[
_index++];
UI\WebControls\Dynamic.cs (3)
984
char last = text
[
text.Length - 1];
1810
ch = textPos < textLen ? text
[
textPos] : '\0';
1815
ch = textPos < textLen ? text
[
textPos] : '\0';
System.Web.Mobile (50)
Mobile\UrlPath.cs (7)
58
Debug.Assert(path
[
path.Length-1] != '/', "Path should not end with a /");
159
if ((examine == 0 || path
[
examine - 1] == '/')
160
&& (examine + 1 == length || path
[
examine + 1] == '/' ||
161
(path
[
examine + 1] == '.' && (examine + 2 == length || path
[
examine + 2] == '/'))))
185
(examine < 1 || path
[
examine - 1] == '.') &&
186
(start + 1 >= length || path
[
start + 1] == '.'))
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
755
firstFormatChar = shortDatePattern
[
i];
UI\MobileControls\Adapters\ChtmlImageAdapter.cs (1)
72
codeValue += DecimalCharToInt(decimalString
[
i]) * adj;
UI\MobileControls\Adapters\EmptyTextWriter.cs (1)
343
char c = s
[
i];
UI\MobileControls\Adapters\HtmlFormAdapter.cs (2)
411
char b = queryString
[
i];
445
if (i == l-1 && queryString
[
i] == '&')
UI\MobileControls\Adapters\HtmlLabelAdapter.cs (1)
52
char c = s
[
i];
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (2)
101
int ch = text
[
pos];
107
base.Write(text
[
pos]);
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (1)
116
Char c = filePathSuffix
[
_filePathSuffixLength - 1];
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
732
firstFormatChar = shortDatePattern
[
i];
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
671
firstFormatChar = shortDatePattern
[
i];
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (2)
200
if (prefix
[
prefix.Length - 1] != '/') {
737
} while (pos < length && queryString
[
pos] == '&');
UI\MobileControls\Design\Adapters\DesignerTextViewAdapter.cs (11)
101
switch (text
[
i])
129
filteredText.Append(text
[
i]);
155
if (text
[
i-1] != '\\' && doubleQuotedAttributeValue)
166
filteredText.Append(text
[
i]);
192
if (text
[
i-1] != '\\' && !doubleQuotedAttributeValue)
203
filteredText.Append(text
[
i]);
226
filteredText.Append(text
[
i]);
275
filteredText.Append(text
[
i]);
283
if (Char.IsWhiteSpace(text
[
i]))
289
filteredText.Append(text
[
i]);
307
filteredText.Append(text
[
i]);
UI\MobileControls\Form.cs (1)
149
char c = eventArgument
[
i];
UI\MobileControls\LiteralText.cs (3)
91
char c = text
[
offset];
141
while (start < stop && Char.IsWhiteSpace(text
[
start]) )
149
while (Char.IsWhiteSpace(text
[
stop - 1]) && stop > start)
UI\MobileControls\LiteralTextParser.cs (6)
210
char c = literalText
[
endOfTag];
283
bool isClosingTag = (literalText
[
tagStart] == '/');
300
!Char.IsWhiteSpace(literalText
[
tagNameFinish]) && literalText
[
tagNameFinish] != '/')
433
if (attrFinish > attrStart && literalText
[
attrFinish - 1] == '/')
449
char c = attrPos == attrFinish ? '\0' : literalText
[
attrPos];
UI\MobileControls\MobileControl.cs (6)
363
if ((examine == 0 || relativeUrl
[
examine - 1] == '/')
364
&& (examine + 1 == length || relativeUrl
[
examine + 1] == '/' ||
365
(relativeUrl
[
examine + 1] == '.' &&
366
(examine + 2 == length || relativeUrl
[
examine + 2] == '/'))))
951
char c = text
[
i];
964
char c = text
[
i2];
UI\MobileControls\MobilePage.cs (2)
575
if (i == 0 || queryStringText
[
i-1] == '&')
577
if (i+n < queryStringText.Length && queryStringText
[
i+n] == '=')
UI\MobileControls\TextView.cs (1)
234
char c = element.Text
[
i];
System.Web.Services (8)
System\Web\Services\Description\Soap12ProtocolImporter.cs (2)
51
if (iStart == 0 || uriList
[
iStart - 1] == ' ')
52
if (iEnd == uriList.Length || uriList
[
iEnd] == ' ')
System\Web\Services\Description\SoapProtocolImporter.cs (2)
1097
if (iStart == 0 || uriList
[
iStart - 1] == ' ')
1098
if (iEnd == uriList.Length || uriList
[
iEnd] == ' ')
System\Web\Services\Discovery\DiscoveryReference.cs (1)
107
char c = filename
[
i];
System\Web\Services\Protocols\RequestResponse.cs (2)
206
char ch = s
[
i];
214
if (index > 0 && s
[
index] == ';')
System\Web\Services\Protocols\Scalars.cs (1)
135
char ch = s
[
i];
System.Windows.Forms (69)
misc\DebugHandleTracker.cs (3)
392
while (t < tokenLength && str
[
s + t] == token
[
t]) {
437
while (endIndex < length && ((ch = releventStack
[
endIndex]) == '\r' || ch == '\n')) {
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (2)
1138
hex[index] = (byte) ((HexToByte(hexString
[
i]) << 4) | HexToByte(hexString
[
i+1]));
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (2)
1996
hex[index] = (byte)((HexToByte(hexString
[
i]) << 4) | HexToByte(hexString
[
i + 1]));
winforms\Managed\System\Resources\ResXDataNode.cs (2)
715
switch (text
[
i]) {
721
sb.Append(text
[
i]);
winforms\Managed\System\Resources\ResXFileRef.cs (6)
135
if ((path1
[
i] != path2
[
i]) && (compareCase || (Char.ToLower(path1
[
i], CultureInfo.InvariantCulture) != Char.ToLower(path2
[
i], CultureInfo.InvariantCulture))))
139
} else if (path1
[
i] == Path.DirectorySeparatorChar) {
154
if (path1
[
i] == Path.DirectorySeparatorChar) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
1312
errorInfo
[
errorInfo.Length -1] == '\n' ||
1313
errorInfo
[
errorInfo.Length -1] == '\r') {
winforms\Managed\System\WinForms\Control.cs (3)
7703
char c1 = Char.ToUpper(text
[
pos], CultureInfo.CurrentCulture);
16776
switch (text
[
i]) {
16782
sb.Append(text
[
i]);
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
1432
char ch = s
[
i];
1488
char ch = s
[
i];
winforms\Managed\System\WinForms\FileDialog.cs (1)
712
if (directory
[
directory.Length - 1] != '\\') {
winforms\Managed\System\WinForms\RichTextBox.cs (5)
2057
while (text
[
foundCursor] == kashida && str
[
searchingCursor] != kashida)
2185
bool found = GetCharInCharSet(str
[
x], characterSet, negate);
2200
bool found = GetCharInCharSet(str
[
x], characterSet, negate);
3125
if(!String.IsNullOrEmpty(result) && (result
[
result.Length-1] == '\0')) {
winforms\Managed\System\WinForms\SendKeys.cs (11)
392
char ch = keys
[
i];
411
if (j + 1 < keysLen && keys
[
j] == '}') {
414
while (final < keysLen && keys
[
final] != '}') {
426
while (j < keysLen && keys
[
j] != '}'
427
&& !Char.IsWhiteSpace(keys
[
j])) {
441
if (Char.IsWhiteSpace(keys
[
j])) {
443
while (j < keysLen && Char.IsWhiteSpace(keys
[
j])) {
451
if (Char.IsDigit(keys
[
j])) {
453
while (j < keysLen && Char.IsDigit(keys
[
j])) {
463
if (keys
[
j] != '}') {
552
fStartNewChar = AddSimpleKey(keys
[
i], repeat, hwnd, haveKeys, fStartNewChar, cGrp);
winforms\Managed\System\WinForms\TableLayoutSettingsTypeConverter.cs (7)
201
while (Char.IsLetter(styleString
[
nextIndex])) {
208
while (!char.IsDigit(styleString
[
nextIndex])) {
213
while ((nextIndex < styleString.Length) && (char.IsDigit(styleString
[
nextIndex]))) {
214
floatStringBuilder.Append(styleString
[
nextIndex]);
220
while ((nextIndex < styleString.Length) && (!char.IsLetter(styleString
[
nextIndex]))) {
221
if (char.IsDigit(styleString
[
nextIndex])) {
222
floatStringBuilder.Append(styleString
[
nextIndex]);
winforms\Managed\System\WinForms\TabPage.cs (3)
609
if (value
[
i] == '&') {
610
if (i < value.Length - 1 && value
[
i + 1] == '&') {
617
newString.Append (value
[
i]);
winforms\Managed\System\WinForms\TextBoxBase.cs (6)
691
char c = text
[
lineEnd];
700
if (lineEnd < text.Length && text
[
lineEnd] == '\r')
702
if (lineEnd < text.Length && text
[
lineEnd] == '\n')
709
if (text.Length > 0 && (text
[
text.Length - 1] == '\r' || text
[
text.Length - 1] == '\n'))
1747
return (index < 0 || index >= t.Length) ? (char)0 : t
[
index];
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
431
while (i > 0 && s
[
i - 1] == '.') i--;
winforms\Managed\System\WinForms\ToolBarButton.cs (3)
707
if (value
[
i] == '&') {
708
if (i < value.Length - 1 && value
[
i+1] == '&') {
714
newString.Append(value
[
i]);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (2)
701
if (ampIndex > 0 && text
[
ampIndex - 1] == '(' &&
702
text.Length > ampIndex + 2 && text
[
ampIndex + 2] == ')')
winforms\Managed\System\WinForms\WinFormsUtils.cs (8)
179
if (text
[
index] == '&') {
183
str.Append(text
[
index]);
265
if (text
[
i] == '&') {
266
if (text
[
i + 1] == '&')
274
mnemonic = Char.ToUpper(text
[
i+1], CultureInfo.CurrentCulture);
277
mnemonic = Char.ToLower(text
[
i+1], CultureInfo.CurrentCulture);
314
if (text
[
index] == '&') {
318
str.Append(text
[
index]);
System.Windows.Forms.DataVisualization (9)
Common\DataManager\DataPoint.cs (2)
2565
if (result.Length > keyEndIndex && result
[
keyEndIndex] == '{')
2606
if (result.Length > keyEndIndex && result
[
keyEndIndex] == '(')
Common\DataManager\DataSeries.cs (5)
1007
seed += (int)this.Name
[
index];
1220
result
[
keyEndIndex] == 'Y' &&
1221
char.IsDigit(result
[
keyEndIndex + 1]))
1229
if(result.Length > keyEndIndex && result
[
keyEndIndex] == '{')
1336
if(result.Length > keyEndIndex && result
[
keyEndIndex] == '{')
Common\General\LegendColumns.cs (1)
1833
if(resultString
[
charIndex] == '\n')
Common\Utilities\XmlSerializer.cs (1)
1278
else if(info.name
[
info.name.Length - 1] == '*')
System.Workflow.Activities (15)
Common\CompModHelpers.cs (3)
391
if (Char.IsUpper(baseIdentifier
[
i]) && (i == 0 || i == baseIdentifier.Length - 1 || Char.IsUpper(baseIdentifier
[
i + 1])))
393
b.Append(Char.ToLowerInvariant(baseIdentifier
[
i]));
Common\TypeSystemHelpers.cs (3)
65
else if (inputTypeName
[
endIndex] == ']') //array or generic
72
if (inputTypeName
[
startIndex] == ']')
74
else if (inputTypeName
[
startIndex] == '[')
Role\DirectoryGroupQuery.cs (2)
79
if (propValue
[
i] == '/')
82
sb.Append(propValue
[
i]);
Rules\CodeDomDecompiler.cs (4)
82
char c = strValue
[
i];
85
if ((char.IsHighSurrogate(c)) && (i + 1 < strValue.Length) && (char.IsLowSurrogate(strValue
[
i + 1])))
90
decompilation.Append(strValue
[
i]);
164
decompilation.Append("0123456789ABCDEF"
[
c]);
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
428
if (charIndex > 0 && this.Text
[
charIndex - 1] == '\n')
Rules\Parser\Scanner.cs (2)
173
return (currentPosition < inputStringLength) ? inputString
[
currentPosition] : '\0';
182
return (peekPosition < inputStringLength) ? inputString
[
peekPosition] : '\0';
System.Workflow.ComponentModel (50)
AuthoringOM\Activity.cs (1)
897
else if (thisPath.Length == 0 || path
[
thisPath.Length] == '.')
AuthoringOM\Bind.cs (4)
1810
char c = (this.index < this.pathLength) ? this.pathValue
[
this.index] : NullChar;
1864
while (this.index < this.pathLength && SpecialChars.IndexOf(this.pathValue
[
this.index]) < 0)
1885
if (this.pathValue
[
this.index] == '[')
1887
else if (this.pathValue
[
this.index] == ']')
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (5)
610
while (Name
[
position] != ']')
612
if (Name
[
position] == ',')
992
if ((elementCharPosition != -1) && (Name
[
elementCharPosition] == '['))
1001
return (this.fullName
[
this.fullName.Length - 1] == '&');
1030
return (this.fullName
[
this.fullName.Length - 1] == '*');
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (2)
349
if (elementDecorator
[
loop] != ' ')
350
nameBuilder.Append(elementDecorator
[
loop]);
AuthoringOM\Compiler\XomlCompiler.cs (2)
944
if (source
[
end] == '"')
948
else if (source
[
end] == ' ' && !insideString)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
303
while ((switchValueStart + switchValueLength < options.Length) && !char.IsWhiteSpace(options
[
switchValueStart + switchValueLength]))
326
if ((startPos > 0) && char.IsWhiteSpace(options
[
startPos - 1]))
330
else if ((startPos == 0) && (startPos + length + 1 < options.Length) && char.IsWhiteSpace(options
[
startPos + length + 1]))
AuthoringOM\Compiler\XomlCompilerParameters.cs (2)
229
if ((path
[
parentLength] != Path.DirectorySeparatorChar) && (path
[
parentLength] != Path.AltDirectorySeparatorChar))
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (2)
192
if (MarkupExtensionSerializer.CompactFormatCharacters.IndexOf(value
[
i]) != -1)
194
sb.Append(value
[
i]);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (23)
2682
if (!gotEscape && args
[
i] == '\\')
2688
if (!nonWhitespaceFound && !Char.IsWhiteSpace(args
[
i]))
2716
stringBuilder.Append(args
[
i]);
2725
if (inQuotes && args
[
i] == quoteChar)
2736
if (leftCurlies > 0 && args
[
i] == '}')
2740
else if (args
[
i] == '{')
2744
stringBuilder.Append(args
[
i]);
2749
if (args
[
i] == '"' || args
[
i] == '\'')
2753
if (collectionIndexer && i < args.Length - 1 && args
[
i + 1] == ']')
2756
stringBuilder.Append(args
[
i]);
2758
else if (i > 0 && args
[
i - 1] == '[')
2761
stringBuilder.Append(args
[
i]);
2769
quoteChar = args
[
i];
2772
else if (args
[
i] == ',' || args
[
i] == '=')
2789
list.Add(args
[
i]);
2792
else if (args
[
i] == '}')
2811
if (args
[
i] == '{')
2816
stringBuilder.Append(args
[
i]);
2834
if (!Char.IsWhiteSpace(args
[
i]))
2850
if (noEscape && value
[
i] == '\\')
2861
builder.Append(value
[
i]);
Shared\CompModHelpers.cs (3)
389
if (Char.IsUpper(baseIdentifier
[
i]) && (i == 0 || i == baseIdentifier.Length - 1 || Char.IsUpper(baseIdentifier
[
i + 1])))
391
b.Append(Char.ToLowerInvariant(baseIdentifier
[
i]));
Shared\TypeSystemHelpers.cs (3)
64
else if (inputTypeName
[
endIndex] == ']') //array or generic
71
if (inputTypeName
[
startIndex] == ']')
73
else if (inputTypeName
[
startIndex] == '[')
System.Workflow.Runtime (2)
Tracking\PropertyHelper.cs (2)
287
if ((']' == fullName
[
i]) && (-1 == endPos))
291
else if (('[' == fullName
[
i]) && (-1 == startPos))
System.WorkflowServices (3)
System\Workflow\Activities\ContractType.cs (2)
495
if ((elementCharPosition != -1) && (Name
[
elementCharPosition] == '['))
527
return (this.name
[
this.name.Length - 1] == '*');
System\Workflow\Activities\ValidationHelper.cs (1)
33
char ch = value
[
i];
System.Xml (261)
System\Xml\Base64Decoder.cs (1)
132
mapBase64[(int)CharsBase64
[
i]] = (byte)i;
System\Xml\BinHexEncoder.cs (2)
66
outArray[curOffsetOut ++] = s_hexDigits
[
b >> 4];
70
outArray[curOffsetOut ++] = s_hexDigits
[
b & 0xF];
System\Xml\Cache\XPathNodeInfoAtom.cs (1)
135
this.localNameHash += (this.localNameHash << 7) ^ this.localName
[
i];
System\Xml\Core\CharEntityEncoderFallback.cs (1)
140
char ch = charEntity
[
charEntityIndex++];
System\Xml\Core\ReadOnlyTernaryTree.cs (2)
62
charToFind = stringToFind
[
stringPos];
101
charToFind = stringToFind
[
stringPos];
System\Xml\Core\SecureStringHasher.cs (1)
62
hashCode += ( hashCode << 7 ) ^ key
[
i];
System\Xml\Core\XmlCharCheckingWriter.cs (6)
334
if ( ( ch = str
[
i] ) >= 0x20 ) {
347
if ( i + 1 < str.Length && str
[
i+1] == '\n' ) {
454
if ( text
[
i] != invChar2 ) {
457
if ( i > 0 && text
[
i-1] == invChar1 ) {
469
return (i == 0 || text
[
i - 1] != invChar1) ? text : (text + ' ');
473
if (i > 0 && text
[
i - 1] == invChar1) {
System\Xml\Core\XmlEncodedRawTextWriter.cs (6)
1587
if ( !xmlCharType.IsTextChar( chars
[
i] ) ) {
1588
switch ( chars
[
i] ) {
1599
if ( XmlCharType.IsHighSurrogate(chars
[
i]) ) {
1601
if ( XmlCharType.IsLowSurrogate(chars
[
i + 1]) ) {
1609
else if ( XmlCharType.IsLowSurrogate(chars
[
i]) ) {
1610
error = Res.GetString( Res.Xml_InvalidSurrogateHighChar, ((uint)chars
[
i]).ToString( "X", CultureInfo.InvariantCulture ) );
System\Xml\Core\XmlTextEncoder.cs (5)
240
while ( i < len && ( xmlCharType.charProperties[ch = text
[
i]] & XmlCharType.fAttrValue ) != 0 ) { // ( xmlCharType.IsAttributeValueChar( ( ch = text[i] ) ) ) ) {
318
throw XmlConvert.CreateInvalidSurrogatePairException( text
[
i], ch );
333
while ( i < len && ( xmlCharType.charProperties[ch = text
[
i]] & XmlCharType.fAttrValue ) != 0 ) { // ( xmlCharType.IsAttributeValueChar( ( text[i] ) ) ) ) {
358
( ( xmlCharType.charProperties[ch = text
[
i]] & XmlCharType.fCharData ) != 0 // ( xmlCharType.IsCharData( ( ch = text[i] ) )
368
char lowChar = text
[
i+1];
System\Xml\Core\XmlTextReaderImpl.cs (3)
8586
while ( value
[
startPos] == 0x20 ) {
8595
if ( value
[
i] == 0x20 ) {
8597
while ( j < len && value
[
j] == 0x20 ) {
System\Xml\Core\XmlTextWriter.cs (2)
634
if (null != text && (text.IndexOf("--", StringComparison.Ordinal)>=0 || (text.Length != 0 && text
[
text.Length-1] == '-'))) {
1380
if (name
[
position] == ':') {
System\Xml\Core\XmlUtf8RawTextWriter.cs (6)
1487
if ( !xmlCharType.IsTextChar( chars
[
i] ) ) {
1488
switch ( chars
[
i] ) {
1499
if ( XmlCharType.IsHighSurrogate(chars
[
i]) ) {
1501
if ( XmlCharType.IsLowSurrogate(chars
[
i + 1]) ) {
1509
else if ( XmlCharType.IsLowSurrogate(chars
[
i]) ) {
1510
error = Res.GetString( Res.Xml_InvalidSurrogateHighChar, ((uint)chars
[
i]).ToString( "X", CultureInfo.InvariantCulture ) );
System\Xml\Core\XmlWellFormedWriter.cs (1)
1795
if ((xmlCharType.charProperties[ncname
[
i]] & XmlCharType.fNCNameSC) != 0) { // if ( xmlCharType.IsNCNameChar( ncname[i] ) ) {
System\Xml\Dom\XmlName.cs (1)
147
char ch = name
[
i];
System\Xml\NameTable.cs (1)
219
if ( str1
[
i] != str2[str2Start+i] ) {
System\Xml\Schema\DtdParser.cs (3)
3353
while (value
[
startPos] == 0x20) {
3362
if (value
[
i] == 0x20) {
3364
while (j < len && value
[
j] == 0x20) {
System\Xml\Schema\Inference\Infer.cs (110)
1742
switch (s
[
i])
1774
switch (s
[
i])
1780
if (s
[
i]>='0' && s
[
i]<='9')
1787
switch (s
[
i])
1793
if (s
[
i]>='0' && s
[
i]<='9')
1800
switch (s
[
i])
1806
if (s
[
i]>='0' && s
[
i]<='9')
1813
if (s
[
i]>='0' && s
[
i]<='9')
1819
if (s
[
i]>='0' && s
[
i]<='9') //".9999e+9
1826
switch (s
[
i])
1835
if (s
[
i]>='0' && s
[
i]<='9') //-9
1842
switch (s
[
i])
1849
if (s
[
i]>='0' && s
[
i]<='9') //"+9
1856
switch (s
[
i])
1861
if (s
[
i]>='0' && s
[
i]<='9') //"P9"
1867
switch (s
[
i])
1876
if (s
[
i]>='0' && s
[
i]<='9')
1888
switch (s
[
i])
1893
if (s
[
i]>='0' && s
[
i]<='9')
1900
switch (s
[
i])
1907
if (s
[
i]>='0' && s
[
i]<='9')
1919
switch (s
[
i])
1924
if (s
[
i]>='0' && s
[
i]<='9')
1931
switch (s
[
i])
1936
if (s
[
i]>='0' && s
[
i]<='9')
1948
switch (s
[
i])
1957
if (s
[
i]>='0' && s
[
i]<='9')
1963
switch (s
[
i])
1974
if (s
[
i]>='0' && s
[
i]<='9')
1986
if (s
[
i]>='0' && s
[
i]<='9')
1992
switch (s
[
i])
2001
if (s
[
i]>='0' && s
[
i]<='9')
2013
if (s
[
i]>='0' && s
[
i]<='9')
2019
switch (s
[
i])
2026
if (s
[
i]>='0' && s
[
i]<='9')
2038
if (s
[
i]>='0' && s
[
i]<='9')
2044
switch (s
[
i])
2049
if (s
[
i]>='0' && s
[
i]<='9')
2080
switch (s
[
i])
2089
if (s
[
i]>='0' && s
[
i]<='9')
2105
switch (s
[
i])
2117
if (s
[
i]>='0' && s
[
i]<='9')
2134
switch (s
[
i])
2143
if (s
[
i]>='0' && s
[
i]<='9')
2160
switch (s
[
i])
2172
if (s
[
i]>='0' && s
[
i]<='9')
2179
if (s
[
i]<'0' || s
[
i]>'9')
2182
if (s
[
i]<'0' || s
[
i]>'9')
2190
switch (s
[
i])
2206
if (s
[
i]<'0' || s
[
i]>'9')
2209
if (s
[
i]<'0' || s
[
i]>'9')
2212
switch (s
[
i])
2247
if (s
[
i]<'0' || s
[
i]>'9')
2250
if (s
[
i]<'0' || s
[
i]>'9')
2253
if (s
[
i] != ':')
2257
if (s
[
i]<'0' || s
[
i]>'9')
2260
if (s
[
i]<'0' || s
[
i]>'9')
2278
if (s
[
i]<'0' || s
[
i]>'9')
2281
if (s
[
i]<'0' || s
[
i]>'9')
2284
if (s
[
i] != ':')
2288
if (s
[
i]<'0' || s
[
i]>'9')
2291
if (s
[
i]<'0' || s
[
i]>'9')
2294
if (s
[
i] != ':')
2297
if (s
[
i]<'0' || s
[
i]>'9')
2300
if (s
[
i]<'0' || s
[
i]>'9')
2303
switch (s
[
i])
2318
if (s
[
i]<'0' || s
[
i]>'9')
2322
switch (s
[
i])
2331
if (s
[
i]>='0' && s
[
i]<='9')
System\Xml\Schema\XsdDateTime.cs (11)
700
while(start < length && char.IsWhiteSpace(text
[
start])) {
884
int d = text
[
start] - '0';
922
char ch = text
[
start];
944
while(start < length && char.IsWhiteSpace(text
[
start])) {
953
int d4 = text
[
start] - '0';
954
int d3 = text
[
start + 1] - '0';
955
int d2 = text
[
start + 2] - '0';
956
int d1 = text
[
start + 3] - '0';
971
int d2 = text
[
start] - '0';
972
int d1 = text
[
start + 1] - '0';
984
return start < length && text
[
start] == ch;
System\Xml\Schema\XsdDuration.cs (16)
464
if (s
[
pos] == '-') {
474
if (s
[
pos++] != 'P') goto InvalidFormat;
481
if (s
[
pos] == 'Y') {
494
if (s
[
pos] == 'M') {
507
if (s
[
pos] == 'D') {
520
if (s
[
pos] == 'T') {
529
if (s
[
pos] == 'H') {
542
if (s
[
pos] == 'M') {
555
if (s
[
pos] == '.') {
578
if (s
[
pos] != 'S') goto InvalidFormat;
581
else if (s
[
pos] == 'S') {
630
while (offset < offsetEnd && s
[
offset] >= '0' && s
[
offset] <= '9') {
631
digit = s
[
offset] - '0';
641
while (offset < offsetEnd && s
[
offset] >= '0' && s
[
offset] <= '9') {
System\Xml\Serialization\CodeIdentifier.cs (1)
68
char c = identifier
[
i];
System\Xml\Serialization\XmlSerializationReader.cs (7)
3662
if (member.Source
[
member.Source.Length - 1] == '(' || member.Source
[
member.Source.Length - 1] == '{') {
3666
if (member.Source
[
member.Source.Length - 1] == '{')
4141
if (source
[
source.Length - 1] != '(' && source
[
source.Length - 1] != '{')
4148
if (source
[
source.Length - 1] == '(' )
4150
else if( source
[
source.Length - 1] == '{')
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
2207
if (member.Source
[
member.Source.Length - 1] == '(' || member.Source
[
member.Source.Length - 1] == '{') {
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3839
writer.Write(hexDigits
[
b >> 4]);
3840
writer.Write(hexDigits
[
b & 0xF]);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
2471
writer.Append(hexDigits
[
b >> 4]);
2472
writer.Append(hexDigits
[
b & 0xF]);
System\Xml\ValidateNames.cs (16)
54
if ((xmlCharType.charProperties[s
[
i]] & XmlCharType.fNCNameSC) != 0) { // if (xmlCharType.IsNCNameSingleChar(s[i])) {
91
if ((xmlCharType.charProperties[s
[
i]] & XmlCharType.fNCNameSC) != 0 || s
[
i] == ':') { // if (xmlCharType.IsNameSingleChar(s[i])) {
133
if ((xmlCharType.charProperties[s
[
i]] & XmlCharType.fNCStartNameSC) != 0 || s
[
i] == ':') { // xmlCharType.IsStartNCNameSingleChar(s[i])) {
147
if ((xmlCharType.charProperties[s
[
i]] & XmlCharType.fNCNameSC) != 0 || s
[
i] == ':') { // if (xmlCharType.IsNCNameSingleChar(s[i]))
189
if ((xmlCharType.charProperties[s
[
i]] & XmlCharType.fNCStartNameSC) != 0) { // xmlCharType.IsStartNCNameSingleChar(s[i])) {
203
if ((xmlCharType.charProperties[s
[
i]] & XmlCharType.fNCNameSC) != 0) { // if (xmlCharType.IsNCNameSingleChar(s[i]))
272
if (offset < s.Length && s
[
offset] == ':') {
332
if (len < s.Length && s
[
len] == ':') {
337
if (offset < s.Length && s
[
offset] == '*') {
385
if (xmlCharType.IsNCNameSingleChar(s
[
offsetBadChar]) && !XmlCharType.Instance.IsStartNCNameSingleChar(s
[
offsetBadChar])) {
411
if (xmlCharType.IsNCNameSingleChar(s
[
offsetBadChar]) && !xmlCharType.IsStartNCNameSingleChar(s
[
offsetBadChar])) {
System\Xml\XmlCharType.cs (7)
582
return ( s_PublicIdBitmap
[
ch >> 4] & ( 1 << ( ch & 0xF ) ) ) != 0;
684
if ( ( charProperties[str
[
i]] & fWhitespace ) == 0 ) {
698
if ( ( charProperties[str
[
i]] & fCharData ) == 0 ) {
699
if ( i + 1 >= str.Length || !(XmlCharType.IsHighSurrogate(str
[
i]) && XmlCharType.IsLowSurrogate(str
[
i+1]))) {
717
if (!IsDigit(str
[
i])) {
740
if ( !IsPubidChar(str
[
i]) ) {
System\Xml\XmlComplianceUtil.cs (6)
28
while ( xmlCharType.IsWhiteSpace( value
[
startPos] ) ) {
37
if ( !xmlCharType.IsWhiteSpace( value
[
i] ) ) {
43
while ( j < len && xmlCharType.IsWhiteSpace( value
[
j] ) ) {
55
if (j > i + 1 || value
[
i] != 0x20 ) {
98
char ch = value
[
i];
112
if ( ch == 0xD && ( i+1 < len && value
[
i+1] == 0xA ) ) {
System\Xml\XmlConvert.cs (29)
125
if (name
[
position + 6]!='_') { //_x1234_
128
FromHex(name
[
position + 2]) * 0x10000000 +
129
FromHex(name
[
position + 3]) * 0x1000000 +
130
FromHex(name
[
position + 4]) * 0x100000 +
131
FromHex(name
[
position + 5]) * 0x10000 +
133
FromHex(name
[
position + 6]) * 0x1000 +
134
FromHex(name
[
position + 7]) * 0x100 +
135
FromHex(name
[
position + 8]) * 0x10 +
136
FromHex(name
[
position + 9]);
158
FromHex(name
[
position + 2]) * 0x1000 +
159
FromHex(name
[
position + 3]) * 0x100 +
160
FromHex(name
[
position + 4]) * 0x10 +
161
FromHex(name
[
position + 5])));
239
if ((local && !xmlCharType.IsNCNameCharXml4e(name
[
position])) ||
240
(!local && !xmlCharType.IsNameCharXml4e(name
[
position])) ||
255
if ((length > position + 1) && XmlCharType.IsHighSurrogate(name
[
position]) && XmlCharType.IsLowSurrogate(name
[
position + 1])) {
256
int x = name
[
position];
257
int y = name
[
position + 1];
264
bufBld.Append(((Int32)name
[
position]).ToString("X4", CultureInfo.InvariantCulture));
420
if (token[0] == ' ' || token
[
token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1) {
430
if (token[0] == ' ' || token
[
token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1) {
1407
while ( i < strLen1 && chars[strPos1+i] == str2
[
i] ) {
1475
while ( i < len && ( xmlCharType.charProperties[data
[
i]] & XmlCharType.fCharData ) != 0 ) {
1483
char ch = data
[
i];
1488
ch = data
[
i+1];
1494
throw CreateInvalidSurrogatePairException( data
[
i+1], data
[
i], invSurrogateExceptionType, 0, i + 1 );
1548
char ch = value
[
i];
System\Xml\XmlException.cs (2)
236
return BuildCharExceptionArgs(data
[
invCharIndex], invCharIndex + 1 < data.Length ? data
[
invCharIndex + 1] : '\0');
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
75
(lang.Length == str.Length || lang
[
str.Length] == '-')
System\Xml\XPath\Internal\StringFunctions.cs (5)
193
if (!xmlCharType.IsWhiteSpace(str1
[
count])) {
195
str2.Append(str1
[
count]);
212
index = str2.IndexOf(str1
[
count]);
215
str.Append(str3
[
index]);
218
str.Append(str1
[
count]);
System\Xml\XPath\Internal\XPathScanner.cs (2)
45
currentChar = xpathExpr
[
xpathExprIndex ++];
261
Debug.Assert(0 <= start && this.xpathExpr
[
start] == '.');
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
900
hashCode += (hashCode << 7) ^ key
[
i];
UIAutomationClient (2)
MS\Internal\Automation\CacheHelper.cs (2)
162
char c = treeDescription
[
index];
237
if (treeDescription
[
index] != ')')
UIAutomationClientsideProviders (15)
MS\Internal\AutomationProxies\Misc.cs (1)
63
return ST.Get(STID.KeyAlt) + "+" + s
[
iPosShortCut + 1];
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
821
char ch = text
[
index];
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (5)
571
return index <= 0 || index >= text.Length || (text
[
index - 1]=='\n') && (text
[
index]!='\n');
595
char ch1 = text
[
index - 1];
596
char ch2 = text
[
index];
600
|| (IsApostrophe(ch1) && char.IsLetterOrDigit(ch2) && index >= 2 && char.IsLetterOrDigit(text
[
index - 2])))
MS\Internal\AutomationProxies\WindowsMenu.cs (8)
1382
if (pos > 0 && pos + keywordsAccelerators[i].Length == menuText.Length && (menuText
[
pos - 1] == '\a' || menuText
[
pos - 1] == '\t'))
1576
return s
[
iPosShortCut + 1].ToString();
2470
return string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", sCanonicalsKeyword, menuText.Substring(pos + cKeyChars + 1, cMenuChars - (pos + cKeyChars + 2)), Char.ToUpper(menuText
[
cMenuChars - 1], CultureInfo.InvariantCulture));
2513
while (iStart - 1 >= 0 && ((ch = s
[
iStart - 1]) == ' ' || ch == '\t' || ch == '\a'))
2717
return name
[
hotKeyStart + 1];
2796
if (pos > 0 && pos + keywordsAccelerators[i].Length == menuText.Length && (menuText
[
pos - 1] == '\a' || menuText
[
pos - 1] == '\t'))
WindowsBase (32)
Base\MS\Internal\AvTrace.cs (3)
426
if (formatIndex < lengthMinus1 && s
[
formatIndex] == s
[
formatIndex+1])
435
sb.Append(s
[
formatIndex]);
Base\MS\Internal\ContentType.cs (13)
96
if (IsLinearWhiteSpaceChar(contentType[0]) || IsLinearWhiteSpaceChar(contentType
[
contentType.Length - 1]))
399
Debug.Assert(!IsLinearWhiteSpaceChar(contentType[0]) && !IsLinearWhiteSpaceChar(contentType
[
contentType.Length - 1]));
409
if (contentType
[
index - 1] == _LinearWhiteSpaceChars[1] || contentType
[
index + 1] == _LinearWhiteSpaceChars[1])
501
if (s
[
startIndex] != '"')
535
if (s
[
length - 1] != '\\')
561
if (IsAsciiLetterOrDigit(token
[
i]))
564
if (IsAllowedCharacter(token
[
i]))
605
if (IsLinearWhiteSpaceChar(quotedText
[
i]))
608
if (quotedText
[
i] <= ' ' || quotedText
[
i] >= 0xFF)
611
if (quotedText
[
i] == '"' &&
612
(i==0 || quotedText
[
i-1] != '\\'))
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
368
Char.IsWhiteSpace(backSlashPath
[
backSlashPath.Length - 1]))
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (6)
271
if (path
[
position - 1] == ']')
292
if (!char.IsDigit(path
[
position - 1]))
300
pieceNumber += multiplier * (int)char.GetNumericValue(path
[
position]);
308
if (multiplier > 10 && (int)char.GetNumericValue(path
[
position]) == 0)
391
if (Char.ToUpperInvariant(input
[
position]) != Char.ToUpperInvariant(query
[
queryPosition]))
Base\System\IO\Packaging\Package.cs (2)
1183
&& normalizedPartName
[
precedingPartName.Length] == PackUriHelper.ForwardSlashChar) ||
1187
&& followingPartName
[
normalizedPartName.Length] == PackUriHelper.ForwardSlashChar))
Base\System\IO\Packaging\PackUriHelper.cs (1)
871
if (partName
[
partName.Length - 1] == '/')
Base\System\Windows\Markup\RuntimeIdentifierPropertyAttribute.cs (2)
115
uc = Char.GetUnicodeCategory(name
[
i]);
121
name
[
i] == '_');
Shared\MS\Internal\TokenizerHelper.cs (4)
199
char currentChar = _str
[
_charIndex];
222
currentChar = _str
[
_charIndex];
282
char currentChar = _str
[
_charIndex];
299
currentChar = _str
[
_charIndex];
WsatConfig (5)
CommandLine\OptionUsage.cs (5)
370
while ((index < text.Length) && char.IsWhiteSpace(text
[
index]))
395
this.stringBuilder.Append(text
[
index]);
435
if (char.IsWhiteSpace(text
[
end]))
451
if (Environment.NewLine
[
i] != text
[
index + i])
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (2)
352
if (nsName
[
assemblyStart + i] != ClrNamespaceUriAssemblyPart
[
i])