234 references to IndexOf
Aspire.Dashboard (2)
ConsoleLogs\AnsiParser.cs (2)
33var nextEscapeIndex = text.IndexOf(EscapeChar, currentPos); 165nextEscapeIndex = text.IndexOf(EscapeChar, i + 1);
BoundTreeGenerator (2)
BoundNodeClassWriter.cs (2)
1768int iEnd = typeName.IndexOf('>', iStart + 1); 1782int iEnd = typeName.IndexOf(')', iStart + 3);
BuildBoss (2)
SolutionUtil.cs (2)
56var start = line.IndexOf('"', index); 63var end = line.IndexOf('"', start);
CSharpSyntaxGenerator (1)
AbstractFileWriter.cs (1)
207int iEnd = typeName.IndexOf('>', iStart + 1);
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1410int nameLen = type.IndexOf('[', nsLen + 1);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
1739endIndex = typeName.IndexOf('`', startIndex); 1754startIndex = typeName.IndexOf('.', endIndex);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
190semiColonIndex = contentType.IndexOf(';', charsetValueIndex);
Metadata\MetadaExchangeResolver.cs (1)
457int equals = paramDecl.IndexOf('=', paramName.Length);
Shared\ProjectDependency.cs (3)
191if (closingIdx != processedSpec.Length - 1 || processedSpec.IndexOf('{', openingIdx + 1) != -1 || processedSpec.IndexOf('}', closingIdx + 1) != -1) 348if (version.IndexOf('*', starIdx + 1) != -1)
GenerateDocumentationAndConfigFiles (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
InMemory.FunctionalTests (2)
ResponseTests.cs (1)
4965var statusEnd = response.IndexOf(' ', statusStart) - 1;
TestTransport\InMemoryHttpClientSlim.cs (1)
109var statusEnd = response.IndexOf(' ', statusStart) - 1;
Metrics (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Metrics.Legacy (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.AspNetCore.Components (4)
Routing\SupplyParameterFromQueryValueProvider.cs (1)
97var queryEndPos = url.IndexOf('#', queryStartPos);
src\Http\Routing\src\PathTokenizer.cs (2)
82while ((delimiterIndex = _path.IndexOf('/', delimiterIndex)) != -1) 178var delimiterIndex = _path.IndexOf('/', _index);
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
173var indexOfClosingParantheses = text.IndexOf(')', currentIndex + 1);
Microsoft.AspNetCore.Components.Web (1)
Forms\Mapping\FormMappingError.cs (1)
66var closingBracket = path.IndexOf(']', lastSeparatorIndex);
Microsoft.AspNetCore.DataProtection (1)
TypeForwardingActivator.cs (1)
84var versionEndIndex = forwardedTypeName.IndexOf(',', versionStartIndex + ", Version=".Length);
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Buffering\PerRequestLogBufferingOptionsCustomValidator.cs (1)
26if (wildcardIndex >= 0 && rule.CategoryName.IndexOf(WildcardChar, wildcardIndex + 1) >= 0)
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\IPAddressListParser.cs (1)
27nextSeparatorIndex = value!.IndexOf(',', startIndex);
Microsoft.AspNetCore.Http (3)
BindingAddress.cs (3)
182pathDelimiterStart = address.IndexOf(':', schemeDelimiterEnd + unixPipeHostPrefixLength); 187pathDelimiterStart = address.IndexOf(':', schemeDelimiterEnd + NamedPipeHostPrefix.Length); 192pathDelimiterStart = address.IndexOf('/', schemeDelimiterEnd);
Microsoft.AspNetCore.Http.Abstractions (2)
HostString.cs (2)
59&& host.IndexOf(':', index + 1) >= 0) 173&& uriComponent.IndexOf(':', index + 1) >= 0)
Microsoft.AspNetCore.Http.Extensions (3)
UriHelper.cs (3)
131if ((searchIndex = uri.IndexOf(Hash, startIndex)) >= 0 && searchIndex < limit) 137if ((searchIndex = uri.IndexOf(QuestionMark, startIndex)) >= 0 && searchIndex < limit) 143if ((searchIndex = uri.IndexOf(ForwardSlash, startIndex)) >= 0 && searchIndex < limit)
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
135var statusEnd = response.IndexOf(' ', statusStart) - 1;
Microsoft.AspNetCore.Mvc.Core (5)
Formatters\AcceptHeaderParser.cs (1)
93currentIndex = value.IndexOf(',', currentIndex);
ModelBinding\JQueryKeyValuePairNormalizer.cs (2)
68var indexClose = key.IndexOf(']', indexOpen); 98indexOpen = key.IndexOf('[', position);
ModelBinding\PrefixContainer.cs (2)
112var bracketPosition = entry.IndexOf(']', 1); 161var bracketPosition = entry.IndexOf(']', keyPosition);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonInputFormatter.cs (1)
379index = path.IndexOf(']', index);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (2)
91var areaRootEndIndex = relativePath.IndexOf('/', startIndex: 1); 101var areaEndIndex = relativePath.IndexOf('/', startIndex: areaRootEndIndex + 1);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
TestInfrastructure\DirectoryNode.cs (1)
120while ((index = path.IndexOf('/', directory.Path.Length)) != -1 && index != path.Length)
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModelFactory.cs (2)
91var areaRootEndIndex = relativePath.IndexOf('/', startIndex: 1); 101var areaEndIndex = relativePath.IndexOf('/', startIndex: areaRootEndIndex + 1);
Microsoft.AspNetCore.Rewrite (1)
RedirectRule.cs (1)
66var pathSplit = newPath.IndexOf('/', schemeSplit);
Microsoft.AspNetCore.Routing (4)
InlineRouteParameterParser.cs (1)
169var indexOfClosingParantheses = routeParameter.IndexOf(')', currentIndex + 1);
PathTokenizer.cs (2)
82while ((delimiterIndex = _path.IndexOf('/', delimiterIndex)) != -1) 178var delimiterIndex = _path.IndexOf('/', _index);
Patterns\RouteParameterParser.cs (1)
173var indexOfClosingParantheses = text.IndexOf(')', currentIndex + 1);
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\FastPathTokenizerBenchmarkBase.cs (1)
13while ((end = path.IndexOf('/', start)) >= 0 && count < maxCount)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (1)
58while ((end = path.IndexOf('/', start)) >= 0)
Microsoft.AspNetCore.Routing.Tests (1)
Matching\BarebonesMatcher.cs (1)
58while ((end = path.IndexOf('/', start)) >= 0)
Microsoft.Build (10)
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
97s.IndexOf(extensionSeparator, firstIndex + 2) > -1;
Construction\Solution\SolutionFile.cs (1)
1450int indexOfClosingBrace = projectReferenceEntry.IndexOf('}', indexOfOpeningBrace);
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
Evaluation\Conditionals\Scanner.cs (1)
593int endOfName = _expression.IndexOf(')', _parsePoint) - 1;
Evaluation\ConditionEvaluator.cs (1)
53var pieceSeparator = leftValue.IndexOf('|', pieceStart);
Evaluation\Expander.cs (3)
3826var indexerEndIndex = expressionFunction.IndexOf(']', 1); 4444int nextMethodIndex = expressionFunction.IndexOf('.', methodStartIndex); 4446int indexerIndex = expressionFunction.IndexOf('[', methodStartIndex);
Evaluation\ExpressionShredder.cs (2)
222int closingQuote = expression.IndexOf('\'', i); 354int closingQuote = expression.IndexOf('\'', i);
Microsoft.Build.Engine.OM.UnitTests (1)
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
Microsoft.Build.Framework.UnitTests (1)
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
Microsoft.Build.Tasks.Core (1)
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
Microsoft.Build.Utilities.Core (1)
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
Microsoft.CodeAnalysis (6)
CommandLine\CommandLineParser.cs (2)
178int colon = arg.IndexOf(':', 1); 187? arg.IndexOf('/', 1)
MetadataReader\MetadataHelpers.cs (2)
403i = _input.IndexOf(']', _offset); 949int index = fullName.IndexOf('.', parentNamespaceNameLength);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
864int semicolon = str.IndexOf(';', i);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
826var separatorPos = input.IndexOf(separator, offset);
Microsoft.CodeAnalysis.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.CSharp (2)
CSharpParseOptions.cs (1)
202while (currentIndex < namespaces.Length && namespaces.IndexOf(';', currentIndex) is not -1 and var semicolonIndex)
Symbols\Synthesized\GeneratedNameParser.cs (1)
132int localFunctionNameEnd = generatedName.IndexOf(GeneratedNameConstants.LocalFunctionNameTerminator, localFunctionNameStart);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
132int localFunctionNameEnd = generatedName.IndexOf(GeneratedNameConstants.LocalFunctionNameTerminator, localFunctionNameStart);
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
151var secondSpaceIndex = displayName.IndexOf(' ', firstSpaceIndex + 1);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
2079var position = text.IndexOf('{', text.IndexOf("a)", StringComparison.Ordinal)); 2082position = text.IndexOf('{', text.IndexOf("b)", StringComparison.Ordinal));
Microsoft.CodeAnalysis.Debugging.Package (1)
CustomDebugInfoReader.cs (1)
826var separatorPos = input.IndexOf(separator, offset);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (2)
58var secondAt = text.IndexOf('@', position + 2); 67var secondAt = text.IndexOf('@', position + 1);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
CustomTypeInfo.cs (1)
185int next = str.IndexOf(NameSeparator, offset);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
132int localFunctionNameEnd = generatedName.IndexOf(GeneratedNameConstants.LocalFunctionNameTerminator, localFunctionNameStart);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (1)
185int next = str.IndexOf(NameSeparator, offset);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (1)
185int next = str.IndexOf(NameSeparator, offset);
Microsoft.CodeAnalysis.Features (1)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
826var separatorPos = input.IndexOf(separator, offset);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementTestHelpers.cs (1)
83var endOfLineCount = src.IndexOf(']', startOfLineCount);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
802int expressionEnd = format.IndexOf('}', i);
Microsoft.CodeAnalysis.VisualBasic (2)
OptionsValidator.vb (1)
82Dim index = name.IndexOf("."c, start)
Symbols\SynthesizedSymbols\GeneratedNameParser.vb (1)
56Dim separatorPos = stateMachineTypeName.IndexOf(GeneratedNameConstants.MethodNameSeparator, prefixLength)
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (1)
src\ExpressionEvaluator\VisualBasic\Source\ResultProvider\VisualBasicFormatter.vb (1)
67Dim index = expression.IndexOf("'"c, lastQuote)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (12)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (12)
228Dim x2 = text.IndexOf("x"c, x1 + 1) 229Dim x3 = text.IndexOf("x"c, x2 + 1) 230Dim x4 = text.IndexOf("x"c, x3 + 1) 231Dim x5 = text.IndexOf("x"c, x4 + 1) 233Dim y2 = text.IndexOf("y"c, y1 + 1) 234Dim y3 = text.IndexOf("y"c, y2 + 1) 235Dim y4 = text.IndexOf("y"c, y3 + 1) 236Dim y5 = text.IndexOf("y"c, y4 + 1) 301Dim x2 = text.IndexOf("x"c, x1 + 1) 302Dim x3 = text.IndexOf("x"c, x2 + 1) 370Dim x2 = text.IndexOf("x"c, x1 + 1) 371Dim x3 = text.IndexOf("x"c, x2 + 1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
CompilationTestUtils.vb (1)
698Dim separator = methodName.IndexOf("."c, offset + 1)
SemanticModelTestBase.vb (1)
53bindText = text.Substring(bindCommentIndex, text.IndexOf(""""c, bindCommentIndex) - bindCommentIndex)
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
FileSet.cs (1)
65var startTagEnd = textContent.IndexOf('>', startTagStart + 1);
Microsoft.DotNet.SignTool (1)
src\ZipData.cs (1)
594int end = fileContents.IndexOf('\n', index);
Microsoft.Extensions.Configuration (1)
ConfigurationProvider.cs (1)
99int indexOf = key.IndexOf(':', prefixLength);
Microsoft.Extensions.Diagnostics (1)
Metrics\ListenerSubscription.cs (1)
177meterName.IndexOf(WildcardChar, wildcardIndex + 1) >= 0)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\HardcodedValueFileSystem.cs (1)
109for (var newLineIndex = content.IndexOf('\n'); newLineIndex >= 0; newLineIndex = content.IndexOf('\n', newLineIndex + 1))
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
126filePath.IndexOf(Path.DirectorySeparatorChar, rootDirLength) == rootDirLength);
Microsoft.Extensions.Logging (1)
LoggerRuleSelector.cs (1)
56categoryName.IndexOf(WildcardChar, wildcardIndex + 1) != -1)
Microsoft.Extensions.Logging.Console (1)
AnsiParser.cs (1)
111nextEscapeIndex = message.IndexOf(EscapeChar, i + 1);
Microsoft.Extensions.Telemetry (3)
Buffering\GlobalLogBufferingOptionsCustomValidator.cs (1)
25if (wildcardIndex >= 0 && rule.CategoryName.IndexOf(WildcardChar, wildcardIndex + 1) >= 0)
Logging\Import\LoggerRuleSelector.cs (1)
61categoryName.IndexOf(WildcardChar, wildcardIndex + 1) != -1)
Sampling\LogSamplingRuleSelector.cs (1)
42categoryName.IndexOf(WildcardChar, wildcardIndex + 1) >= 0)
Microsoft.Maui.Graphics.Text.Markdig (2)
Renderer\HtmlInlineRenderer.cs (2)
21 var firstQuote = tag.IndexOf('"', styleIndex); 25 var secondQuote = tag.IndexOf('"', firstQuote);
Microsoft.ML.Data (1)
Transforms\ColumnBindingsBase.cs (1)
180ich = str.IndexOf(':', ichMin);
Microsoft.ML.Tests (2)
ExpressionLanguageTests\ExpressionLanguageTests.cs (2)
155int ichLimChars = text.IndexOf('#', ichMin); 226int ichCol = text.IndexOf(':', ichMin);
Microsoft.ML.Tokenizers (5)
Model\BPETokenizer.cs (2)
172if (index < 0 || index == merge.Length - 1 || merge.IndexOf(' ', index + 1) >= 0) 1161if (index < 0 || index == line.Length - 1 || line.IndexOf(' ', index + 1) >= 0)
Model\CodeGenTokenizer.cs (1)
1785if (index < 1 || index == line.Length - 1 || line.IndexOf(' ', index + 1) != -1)
Model\EnglishRobertaTokenizer.cs (1)
217if (index < 1 || index == line.Length - 1 || line.IndexOf(' ', index + 1) != -1)
Model\TiktokenTokenizer.cs (1)
211if (spaceIndex <= 0 || spaceIndex >= line.Length - 1 || line.IndexOf(' ', spaceIndex + 1) >= 0)
Microsoft.Net.Http.Headers (1)
HeaderUtilities.cs (1)
197current = headerValue.IndexOf(',', current);
Microsoft.VisualStudio.LanguageServices (2)
Library\VsNavInfo\Extensions.cs (2)
24var separatorPos = name.IndexOf(separator, start); 30separatorPos = name.IndexOf(separator, start);
MSBuild (2)
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
XMake.cs (1)
2194int terminalDoubleQuote = commandLineArg.IndexOf('"', quotedSwitchParameterIndicator + 1);
MSBuildTaskHost (1)
EscapingUtilities.cs (1)
123indexOfPercent = escapedString.IndexOf('%', indexOfPercent + 1);
PresentationCore (1)
System\Windows\Navigation\BaseUriHelper.cs (1)
248end = original.IndexOf('/', start);
PresentationFramework (3)
System\Windows\Controls\AccessText.cs (1)
665int index = text.IndexOf(AccessKeyMarker, startIndex);
System\Windows\Controls\TextBox.cs (1)
1774anchorIndex = newText.IndexOf(anchor, anchorIndex + 1);
System\Windows\Documents\RtfToXamlReader.cs (1)
8169int uriSourceEndIndex = dnImage.Xaml.IndexOf('\"', uriSourceIndex + 11);
ReachFramework (2)
Serialization\XpsImageSerializationService.cs (2)
133int comma = imageMimeType.IndexOf(',', start); 145comma = imageMimeType.IndexOf(',', start);
Roslyn.Diagnostics.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (1)
187int httpStatusEnd = httpResponse.IndexOf(' ', httpStatusStart);
System.Console (1)
src\libraries\Common\src\System\Text\EncodingHelper.Unix.cs (1)
53int atPos = locale.IndexOf('@', dotPos + 1);
System.Diagnostics.Process (1)
src\libraries\Common\src\System\IO\StringParser.cs (1)
61int nextSeparator = _buffer.IndexOf(_separator, _endIndex + 1);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\DelimitedListTraceListener.cs (1)
249while ((index = message.IndexOf('"', lastindex)) != -1)
System.IO.Packaging (1)
System\IO\Packaging\ContentType.cs (1)
266index = contentType.IndexOf(s_linearWhiteSpaceChars[2], ++index);
System.Net.Http (1)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
503if (quoteIndex == lastQuoteIndex || input.IndexOf('\'', quoteIndex + 1) != lastQuoteIndex)
System.Net.HttpListener (5)
System\Net\HttpListenerRequest.cs (2)
336j = headerValue.IndexOf('"', i + 1); 374int ci = s.IndexOf(',', i);
System\Net\HttpListenerRequestUriBuilder.cs (2)
395pathStartIndex = uriString.IndexOf('/', authorityStartIndex); 422int queryIndex = uriString.IndexOf('?', pathStartIndex);
System\Net\Managed\HttpEndPointManager.cs (1)
81int colon = p.IndexOf(':', start);
System.Net.NetworkInformation (5)
src\libraries\Common\src\System\IO\StringParser.cs (1)
61int nextSeparator = _buffer.IndexOf(_separator, _endIndex + 1);
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (4)
94int firstBrace = fileContents.IndexOf('{', leaseIndex); 95secondBrace = fileContents.IndexOf('}', leaseIndex); 99int afterName = fileContents.IndexOf(';', interfaceIndex); 108int afterAddress = fileContents.IndexOf(';', indexOfDhcp);
System.Net.Requests (1)
System\Net\HttpWebResponse.cs (1)
307int j = srchString.IndexOf(';', i);
System.Net.Security (1)
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
493if (index > 0 && username.IndexOf('\\', index + 1) < 0 && domain.IsEmpty)
System.Private.CoreLib (10)
src\libraries\Common\src\System\IO\StringParser.cs (1)
61int nextSeparator = _buffer.IndexOf(_separator, _endIndex + 1);
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (1)
228int endPos = line.IndexOf('"', pos);
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
29while (lastPos < name.Length && (pos = name.IndexOf('%', lastPos + 1)) >= 0)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
81int endOfCollation = name.IndexOf(';', collationIndex);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
601iNextDot = ascii.IndexOf('.', iAfterLastDot);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
571int secondComma = asmTypeName.IndexOf(',', firstComma + 1);
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
379index = str.IndexOf('&', newIndex);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
1106int lastIndex = zoneAbbreviations.IndexOf('\0', index);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
196int secondTabIndex = zoneTabFileLine.IndexOf('\t', firstTabIndex + 1); 201int thirdTabIndex = zoneTabFileLine.IndexOf('\t', startIndex);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\DataContract.cs (2)
1539endIndex = typeName.IndexOf('`', startIndex); 1553startIndex = typeName.IndexOf('.', endIndex);
System.Private.Uri (2)
System\Uri.cs (2)
910int next = path.IndexOf('/', current); 4718idx = basePart.OriginalString.IndexOf(':', idx + 1);
System.Private.Xml (4)
System\Xml\Serialization\Types.cs (1)
1402int nameLen = type.IndexOf('[', nsLen + 1);
System\Xml\Xsl\Runtime\DecimalFormatter.cs (1)
164int pos = formatPicture.IndexOf('\'', i + 1);
System\Xml\Xsl\XPath\XPathScanner.cs (1)
516int endIdx = _xpathExpr.IndexOf(_curChar, startIdx);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
916pos = source.IndexOf('{', pos);
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
335int next = value.IndexOf(separator, i);
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1973int lastindex = set.IndexOf(GroupChar, index + 1);
System\Text\RegularExpressions\RegexParser.cs (3)
527_pos = _pattern.IndexOf('$', _pos); 1051_pos = _pattern.IndexOf('\n', _pos); 1059_pos = _pattern.IndexOf(')', _pos);
System.Text.RegularExpressions.Generator (4)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1973int lastindex = set.IndexOf(GroupChar, index + 1);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (3)
527_pos = _pattern.IndexOf('$', _pos); 1051_pos = _pattern.IndexOf('\n', _pos); 1059_pos = _pattern.IndexOf(')', _pos);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
406int index = text.IndexOf('_', startIndex);
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
6383pos = text.IndexOf('&', pos + 1) + 1;
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
43int firstAmpersand = text.IndexOf('&', 0); 51int secondAmpersand = text.IndexOf('&', firstAmpersand + 1);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
220curIndex = name.IndexOf('.', curIndex + 1);
System.Windows.Forms.UI.IntegrationTests (1)
Infra\SendInput.cs (1)
39int nextIndex = text.IndexOf('\r', index);
System.Xaml (1)
System\Xaml\Parser\MeScanner.cs (1)
259idx = value.IndexOf(Backslash, start);
Test.Utilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
Text.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
76var secondColonIndex = arg.IndexOf(':', firstColonIndex + 1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (2)
19var prefixIndex = text.IndexOf(escapePrefix, startIndex); 68var index = text.IndexOf(escapePrefix, startIndex);
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
545embeddedObjectOffset = text.IndexOf((char)0xFFFC, start);