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