63 references to StartsWith
Microsoft.AspNetCore.Mvc.Razor (1)
TagHelpers\UrlResolutionTagHelper.cs (1)
296if (!url.StartsWith("~/"))
Microsoft.AspNetCore.Routing (1)
Matching\HostMatcherPolicy.cs (1)
110host.StartsWith(WildcardPrefix) &&
Microsoft.AspNetCore.WebSockets (2)
HandshakeHelpers.cs (2)
133else if (value.StartsWith(WebSocketDeflateConstants.ClientMaxWindowBits)) 178else if (value.StartsWith(WebSocketDeflateConstants.ServerMaxWindowBits))
Microsoft.Build (4)
Definition\ToolsetReader.cs (3)
688if (remainder.StartsWith(")".AsSpan())) 692else if (remainder.StartsWith("32)".AsSpan())) 696else if (remainder.StartsWith("64)".AsSpan()))
Logging\TerminalLogger\TerminalLogger.cs (1)
869message.AsSpan().StartsWith(Path.GetFileNameWithoutExtension(projectFileName)) && hasProject)
Microsoft.CodeAnalysis.CSharp (2)
Parser\LanguageParser_InterpolatedString.cs (2)
187if (!currentLineWhitespace.StartsWith(indentationWhitespace)) 196var isLegalBlankLine = isBlankLine && indentationWhitespace.StartsWith(currentLineWhitespace);
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
125if (!docCommentId.Span.StartsWith(expectedDocCommentId))
Microsoft.Extensions.AI.OpenAI (1)
src\Shared\ServerSentEvents\SseParser_1.cs (1)
396advance = line.Length + newlineLength + (remainder.StartsWith(CRLF) ? 2 : 1);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Linux\LinuxUtilizationParserCgroupV1.cs (2)
132if (!bufferWriter.Buffer.WrittenSpan.StartsWith(StartingTokens)) 269if (!firstLine.StartsWith(MemTotal))
Linux\LinuxUtilizationParserCgroupV2.cs (2)
176if (!bufferWriter.Buffer.WrittenSpan.StartsWith(StartingTokens)) 414if (!firstLine.StartsWith(MemTotal))
Microsoft.ML.Tokenizers.Tests (4)
LlamaTests.cs (4)
850Assert.True(decodedWithNoSpecialTokens.AsSpan().StartsWith(destinationBuffer.AsSpan().Slice(0, charactersWritten))); 864Assert.True(textWithSpecialTokens.AsSpan().StartsWith(destinationBuffer.AsSpan().Slice(0, charactersWritten))); 889Assert.True(decodedWithNoSpecialTokens.AsSpan().StartsWith(destinationBuffer.AsSpan().Slice(0, charactersWritten))); 908Assert.True(textWithSpecialTokens.AsSpan().StartsWith(sp));
PresentationFramework (1)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12238isWPFControl = name.StartsWith("System.Windows.Controls.");
Shared (1)
ServerSentEvents\SseParser_1.cs (1)
396advance = line.Length + newlineLength + (remainder.StartsWith(CRLF) ? 2 : 1);
System.IO.Compression (1)
System\IO\Compression\ZipBlocks.cs (1)
719if (!buffer.StartsWith(SignatureConstantBytes))
System.Net.Http (15)
System\Net\Http\Headers\AltSvcHeaderParser.cs (2)
145else if (value.AsSpan(idx).StartsWith("persist=")) 222case 10 when span.StartsWith("http%2F1."):
System\Net\Http\HttpContent.cs (9)
706return data.StartsWith(UTF8Preamble) ? UTF8Preamble.Length : 0; 709return data.StartsWith(UTF32Preamble) ? UTF32Preamble.Length : 0; 712return data.StartsWith(UnicodePreamble) ? UnicodePreamble.Length : 0; 715return data.StartsWith(BigEndianUnicodePreamble) ? BigEndianUnicodePreamble.Length : 0; 719return preamble is not null && data.StartsWith(preamble) ? preamble.Length : 0; 725if (data.StartsWith(UTF8Preamble)) 732if (data.StartsWith(UTF32Preamble)) 739if (data.StartsWith(UnicodePreamble)) 746if (data.StartsWith(BigEndianUnicodePreamble))
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (4)
225if (proxyString.StartsWith("http=")) 230else if (proxyString.StartsWith("https=")) 236if (proxyString.StartsWith("http://")) 244else if (proxyString.StartsWith("https://"))
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
379advance = line.Length + newlineLength + (remainder.StartsWith(CRLF) ? 2 : 1);
System.Net.WebSockets.Client (3)
System\Net\WebSockets\WebSocketHandle.Managed.cs (3)
184if (extension.AsSpan().TrimStart().StartsWith(ClientWebSocketDeflateConstants.Extension)) 329else if (value.StartsWith(ClientWebSocketDeflateConstants.ClientMaxWindowBits)) 333else if (value.StartsWith(ClientWebSocketDeflateConstants.ServerMaxWindowBits))
System.Private.CoreLib (10)
src\libraries\Common\src\Interop\Linux\os-release\Interop.OSReleaseFile.cs (1)
61if (!line.StartsWith(prefix))
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (2)
552return source.StartsWith(prefix); 564return source.StartsWith(prefix);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Utf8.cs (2)
49return source.StartsWith(prefix); 61return source.StartsWith(prefix);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
3553StartsWith((ReadOnlySpan<T>)span, value);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (1)
351return span.StartsWith(value);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.Utf8.cs (1)
53return span.StartsWith(value);
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (2)
311if (!positiveSign.IsEmpty && value.StartsWith(positiveSign)) 321else if (!negativeSign.IsEmpty && value.StartsWith(negativeSign))
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1706if (allowWildcards && embeddedSpan.StartsWith("*.") && embeddedSpan.Length > 2)
System.Text.Json (10)
System\Text\Json\Document\JsonDocument.cs (1)
368if (!otherUtf8Text.StartsWith(segment.Slice(0, idx)))
System\Text\Json\Reader\Utf8JsonReader.cs (5)
598if (other.Slice(matchedSoFar).StartsWith(span)) 623if (!other.StartsWith(localSpan.Slice(0, idx))) 658if (!other.Slice(matchedSoFar).StartsWith(span.Slice(0, idx))) 678if (!other.Slice(matchedSoFar).StartsWith(span)) 1139if (!span.StartsWith(literal))
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (4)
518if (!span.StartsWith(literal)) 558if (!literal.StartsWith(span)) 594if (span.StartsWith(leftToMatch)) 604if (!leftToMatch.StartsWith(span))