26 references to ContainsAnyExcept
Microsoft.AspNetCore.Http.Abstractions (1)
HostString.cs (1)
142if (!_value.AsSpan().ContainsAnyExcept(s_safeHostStringChars))
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\W3CPropagator.cs (3)
405private static bool IsInvalidBaggageKey(ReadOnlySpan<char> span) => span.ContainsAnyExcept(s_validBaggageKeyChars); 432private static bool IsInvalidTraceStateKey(ReadOnlySpan<char> key) => key.IsEmpty || (key[0] < 'a' || key[0] > 'z') || key.ContainsAnyExcept(s_validTraceStateChars); 437private static bool IsInvalidTraceStateValue(ReadOnlySpan<char> value) => value.IsEmpty || value.ContainsAnyExcept(s_validTraceStateValueChars);
System.Net.Http (3)
System\Net\Http\HttpRuleParser.cs (2)
44!input.ContainsAnyExcept(s_tokenChars); 47!input.ContainsAnyExcept(s_tokenBytes);
System\Net\Http\MultipartContent.cs (1)
85if (boundary.AsSpan().ContainsAnyExcept(s_allowedBoundaryChars))
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
87if (_method.AsSpan().ContainsAnyExcept(s_validMethodChars))
System.Net.Mail (1)
System\Net\Mail\MailBnfHelper.cs (1)
150if (data.Length == 0 || data.AsSpan().ContainsAnyExcept(s_charactersAllowedInHeaderNames))
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
491!name.ContainsAnyExcept(s_domainChars);
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
16!name.ContainsAnyExcept(s_safeDnsChars);
System.Net.Security (1)
src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
16!name.ContainsAnyExcept(s_safeDnsChars);
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (5)
117if (target.ContainsAnyExcept(s_nonSpecialAsciiChars)) 124if (source.ContainsAnyExcept(s_nonSpecialAsciiChars)) 200if (remainingSource.ContainsAnyExcept(s_nonSpecialAsciiChars)) 232if (target.ContainsAnyExcept(s_nonSpecialAsciiChars)) 239if (source.ContainsAnyExcept(s_nonSpecialAsciiChars))
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
429/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, SearchValues{T})"/> 433ContainsAnyExcept((ReadOnlySpan<T>)span, values);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (3)
87if (ignoreCase && value.AsSpan().ContainsAnyExcept(s_allAsciiExceptLowercase)) 248asciiStartLettersOnly = asciiStartLettersOnly && !slice.ContainsAnyExcept(s_asciiLetters); 458asciiLettersOnly = asciiLettersOnly && !value.AsSpan().ContainsAnyExcept(s_asciiLetters);
System.Private.DataContractSerialization (2)
System\Xml\XmlConverter.cs (2)
1086!chars.ContainsAnyExcept(s_whitespaceChars); 1089!bytes.ContainsAnyExcept(s_whitespaceBytes);
System.Private.Uri (2)
System\Uri.cs (2)
1477!schemeName.AsSpan().ContainsAnyExcept(s_schemeChars); 3761scheme.ContainsAnyExcept(s_schemeChars))