55 references to StartsWith
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash))
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash))
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\PathNormalizer\PathNormalizer.cs (1)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash))
Microsoft.Build (1)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
131if (normalizedBuildCommand.StartsWith(buildCommand.AsSpan()))
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\ServerSentEvents\SseParser_1.cs (2)
293return _lineBuffer.AsSpan(_newlineIndex, _lineLength - (_newlineIndex - _lineOffset)).StartsWith(CRLF) ? 2 : 1; 550if (_lineBuffer.AsSpan(0, _lineLength).StartsWith(Utf8Bom))
Shared (2)
ServerSentEvents\SseParser_1.cs (2)
293return _lineBuffer.AsSpan(_newlineIndex, _lineLength - (_newlineIndex - _lineOffset)).StartsWith(CRLF) ? 2 : 1; 550if (_lineBuffer.AsSpan(0, _lineLength).StartsWith(Utf8Bom))
System.IO.Compression (3)
System\IO\Compression\ZipBlocks.cs (3)
422if (bytesRead < TotalSize || !blockContents.StartsWith(SignatureConstantBytes)) 495if (!blockContents.StartsWith(SignatureConstantBytes)) 923if (!blockContents.StartsWith(SignatureConstantBytes))
System.Net.ServerSentEvents (2)
System\Net\ServerSentEvents\SseParser_1.cs (2)
277return _lineBuffer.AsSpan(_newlineIndex, _lineLength - (_newlineIndex - _lineOffset)).StartsWith(CRLF) ? 2 : 1; 526if (_lineBuffer.AsSpan(0, _lineLength).StartsWith(Utf8Bom))
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
1141if (data.AsSpan().StartsWith(preamble)) 1157bomLengthInData = data.AsSpan().StartsWith(preamble) ? preamble.Length : 0;
System.Private.Xml (37)
System\Xml\Core\XmlTextReaderImpl.cs (19)
3197if (_ps.bytes.AsSpan(0, _ps.bytesUsed).StartsWith(preamble)) 3594if (!_ps.chars.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) || 3784if (_ps.chars.AsSpan(_ps.charPos).StartsWith("1.0")) 3946if (chars.AsSpan(pos).StartsWith("CDATA[")) 4166if (chars.AsSpan(pos).StartsWith("CDATA[")) 4373if (prefixLen == _lastPrefix.Length && chars.AsSpan(startPos).StartsWith(_lastPrefix)) 4549if (!chars.AsSpan(_ps.charPos).StartsWith(startTagNode.localName)) 4558if (!chars.AsSpan(_ps.charPos).StartsWith(startTagNode.prefix) || 4560!chars.AsSpan(colonPos + 1).StartsWith(startTagNode.localName)) 6681if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("DOCTYPE")) 6763if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("PUBLIC")) 6800if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("SYSTEM")) 7674if (prefixLen == _lastPrefix.Length && _ps.chars.AsSpan(_ps.charPos).StartsWith(_lastPrefix)) 8223Debug.Assert(_ps.chars.AsSpan(_ps.charPos - 2).StartsWith("?>")); 8231Debug.Assert(_ps.chars.AsSpan(_ps.charPos - 3).StartsWith("-->")); 8239Debug.Assert(_ps.chars.AsSpan(_ps.charPos - 3).StartsWith("]]>")); 8359if (chars.AsSpan(pos + 2).StartsWith("[CDATA[")) 8379if ((endPos - _ps.charPos - 2) == checkName.Length && chars.AsSpan(_ps.charPos + 2).StartsWith(checkName) && 8418if (endPos - _ps.charPos - 1 == _curNode.localName.Length && _ps.chars.AsSpan(_ps.charPos + 1).StartsWith(_curNode.localName) &&
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
1179if (!_ps.chars.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) || 1366if (_ps.chars.AsSpan(_ps.charPos).StartsWith("1.0")) 1517if (chars.AsSpan(pos).StartsWith("CDATA[")) 1771if (chars.AsSpan(pos).StartsWith("CDATA[")) 1966if (prefixLen == _lastPrefix.Length && chars.AsSpan(startPos).StartsWith(_lastPrefix)) 2108if (!chars.AsSpan(_ps.charPos).StartsWith(startTagNode.localName)) 2117if (!chars.AsSpan(_ps.charPos).StartsWith(startTagNode.prefix) || 2119!chars.AsSpan(colonPos + 1).StartsWith(startTagNode.localName)) 4424if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("DOCTYPE")) 4508if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("PUBLIC")) 4545if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("SYSTEM"))
System\Xml\Schema\DtdParser.cs (3)
1987if (_chars.AsSpan(_curPos + 1).StartsWith("PCDATA")) 3118if (!_chars.AsSpan(_curPos + 1).StartsWith("UBLIC")) 3137if (!_chars.AsSpan(_curPos + 1).StartsWith("YSTEM"))
System\Xml\Schema\DtdParserAsync.cs (4)
1585if (_chars.AsSpan(_curPos + 1).StartsWith("PCDATA")) 2169if (_chars.AsSpan(_curPos + 1).StartsWith("DATA")) 2531if (!_chars.AsSpan(_curPos + 1).StartsWith("UBLIC")) 2550if (!_chars.AsSpan(_curPos + 1).StartsWith("YSTEM"))
System.Text.Json (1)
System\Text\Json\Serialization\ReadBufferState.cs (1)
170if (_buffer.AsSpan(0, _count).StartsWith(JsonConstants.Utf8Bom))
System.Windows.Forms (1)
System\Windows\Forms\Controls\ComboBox\ComboBox.AutoCompleteDropDownFinder.cs (1)
45if (length == AutoCompleteClassName.Length && buffer.StartsWith(AutoCompleteClassName))