100 references to IndexOfAnyExcept
http2cat (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
IIS.FunctionalTests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
IIS.LongTests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
IIS.NewHandler.FunctionalTests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
IIS.NewShim.FunctionalTests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
IIS.ShadowCopy.Tests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
IISExpress.FunctionalTests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
Microsoft.AspNetCore.Http (2)
src\Http\Shared\CookieHeaderParserShared.cs (1)
201var delta = input.AsSpan(offset).IndexOfAnyExcept(CookieValueChar);
src\Shared\HttpRuleParser.cs (1)
64var firstNonTokenCharIdx = subspan.IndexOfAnyExcept(TokenChars);
Microsoft.AspNetCore.Http.Abstractions (2)
PathString.cs (2)
82var indexOfInvalidChar = value.AsSpan().IndexOfAnyExcept(s_validPathChars); 121var charsToSkip = value.AsSpan(i).IndexOfAnyExcept(s_validPathChars);
Microsoft.AspNetCore.HttpOverrides (3)
ForwardedHeadersMiddleware.cs (3)
261if (!string.IsNullOrEmpty(set.Scheme) && set.Scheme.AsSpan().IndexOfAnyExcept(SchemeChars) < 0) 436var firstNonHostCharIdx = host.AsSpan().IndexOfAnyExcept(HostChars); 454var hostEndIdx = host.IndexOfAnyExcept(Ipv6HostChars);
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\HttpRuleParser.cs (1)
64var firstNonTokenCharIdx = subspan.IndexOfAnyExcept(TokenChars);
Microsoft.AspNetCore.Mvc.Razor (1)
TagHelpers\UrlResolutionTagHelper.cs (1)
286var start = url.IndexOfAnyExcept(ValidAttributeWhitespaceChars);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Rendering\TagBuilder.cs (2)
163var indexOfInvalidCharacter = name.AsSpan(1).IndexOfAnyExcept(_html401IdChars); 194indexOfInvalidCharacter = remainingName.IndexOfAnyExcept(_html401IdChars);
Microsoft.AspNetCore.Routing (1)
src\Shared\HttpRuleParser.cs (1)
64var firstNonTokenCharIdx = subspan.IndexOfAnyExcept(TokenChars);
Microsoft.AspNetCore.Server.HttpSys (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
Microsoft.AspNetCore.Server.IIS (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
Microsoft.AspNetCore.Server.Kestrel.Core (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
Microsoft.AspNetCore.Shared.Tests (5)
src\Shared\ServerInfrastructure\HttpCharacters.cs (5)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars);
Microsoft.Net.Http.Headers (3)
ContentDispositionHeaderValue.cs (1)
624var length = remaining.IndexOfAnyExcept(Rfc5987AttrChar);
src\Http\Shared\CookieHeaderParserShared.cs (1)
201var delta = input.AsSpan(offset).IndexOfAnyExcept(CookieValueChar);
src\Shared\HttpRuleParser.cs (1)
64var firstNonTokenCharIdx = subspan.IndexOfAnyExcept(TokenChars);
System.Net.Http (2)
System\Net\Http\Headers\HeaderUtilities.cs (1)
79int length = utf8.IndexOfAnyExcept(s_rfc5987AttrBytes);
System\Net\Http\HttpRuleParser.cs (1)
38int index = slice.IndexOfAnyExcept(s_tokenChars);
System.Net.HttpListener (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
44int indexOfInvalidChar = subProtocol.AsSpan().IndexOfAnyExcept(s_validSubprotocolChars);
System.Net.Mail (1)
System\Net\Mail\MailBnfHelper.cs (1)
231int i = span.IndexOfAnyExcept(s_charactersAllowedInTokens);
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
44int indexOfInvalidChar = subProtocol.AsSpan().IndexOfAnyExcept(s_validSubprotocolChars);
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
44int indexOfInvalidChar = subProtocol.AsSpan().IndexOfAnyExcept(s_validSubprotocolChars);
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64ValidatorHelper.cs (2)
148public int IndexOfAnyExcept(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(s_validBase64Chars); 173public int IndexOfAnyExcept(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(s_validBase64Chars);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlValidator.cs (2)
62public int IndexOfAnyExcept(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(s_validBase64UrlChars); 88public int IndexOfAnyExcept(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(s_validBase64UrlChars);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
795IndexOfAnyExcept((ReadOnlySpan<T>)span, values);
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (3)
280for (int i = input.IndexOfAnyExcept(s_htmlAsciiNonEncodingChars); (uint)i < (uint)input.Length; i++) 314for (int i = value.AsSpan().IndexOfAnyExcept(s_safeUrlChars); (uint)i < (uint)value.Length; i++) 388for (int i = source.IndexOfAnyExcept(s_safeUrlBytes); (uint)i < (uint)source.Length; i++)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
314int indexOfFirstToEscape = codebase.AsSpan().IndexOfAnyExcept(UnreservedReserved);
System.Private.Uri (4)
System\DomainNameHelper.cs (1)
104: hostname.IndexOfAnyExcept(s_validChars);
System\UriExt.cs (1)
236int i = data.AsSpan().IndexOfAnyExcept(s_asciiOtherThanPercent);
System\UriHelper.cs (2)
127int indexOfFirstToEscape = charsToEscape.IndexOfAnyExcept(Unreserved); 194int indexOfFirstToEscape = charsToEscape.IndexOfAnyExcept(noEscape);
System.Private.Xml (3)
System\Xml\XmlCharType.cs (3)
138str.IndexOfAnyExcept(s_whitespaceChars); 142int i = str.IndexOfAnyExcept(s_asciiCharDataChars); 176str.AsSpan().IndexOfAnyExcept(s_publicIdChars);
System.Text.Encodings.Web (2)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (2)
366asciiBytesSkipped = data.IndexOfAnyExcept(_allowedAsciiBytes); 404asciiCharsSkipped = data.IndexOfAnyExcept(_allowedAsciiChars);
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
442int i = bytes.IndexOfAnyExcept(s_urlSafeBytes);