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