35 references to IsAscii
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\HttpUtilities.cs (1)
330Debug.Assert(char.IsAscii(c), "Must already be validated");
System.Private.CoreLib (30)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
867if (sizeof(TChar) == sizeof(char) || char.IsAscii(ch))
src\libraries\System.Private.CoreLib\src\System\Char.cs (4)
384if (IsAscii(c)) 680if (IsAscii(c)) 739if (IsAscii(c)) 762if (IsAscii(c))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
749if (typeof(TChar) == typeof(char) || char.IsAscii(ch))
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (3)
357if (!char.IsAscii(valueChar)) 378if (char.IsAscii(valueCharU)) 446if (!char.IsAscii(tmp))
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
202return char.IsAscii(c)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
333if (!char.IsAscii(ch))
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2CharPackedIgnoreCaseSearchValues.cs (2)
23Debug.Assert((value0 | 0x20) == value0 && char.IsAscii(value0)); 24Debug.Assert((value1 | 0x20) == value1 && char.IsAscii(value1));
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticWithAsciiCharSearchValues.cs (8)
44if (IndexOfAnyAsciiSearcher.IsVectorizationSupported && span.Length >= Vector128<short>.Count && char.IsAscii(span[0])) 76if ((uint)offset >= (uint)span.Length || char.IsAscii(span[offset])) 105if (IndexOfAnyAsciiSearcher.IsVectorizationSupported && span.Length >= Vector128<short>.Count && char.IsAscii(span[0])) 114if ((uint)offset >= (uint)span.Length || char.IsAscii(span[offset])) 141if (IndexOfAnyAsciiSearcher.IsVectorizationSupported && span.Length >= Vector128<short>.Count && char.IsAscii(span[^1])) 175if ((uint)offset >= (uint)span.Length || char.IsAscii(span[offset])) 194if (IndexOfAnyAsciiSearcher.IsVectorizationSupported && span.Length >= Vector128<short>.Count && char.IsAscii(span[^1])) 203if ((uint)offset >= (uint)span.Length || char.IsAscii(span[offset]))
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
113float newFrequency = char.IsAscii(childChar) ? CharacterFrequencyHelper.AsciiFrequency[childChar] : -1;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\CharacterFrequencyHelper.cs (2)
35Debug.Assert(!ignoreCase || char.IsAscii(value[0])); 99if (char.IsAscii(c))
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (3)
29Debug.Assert(char.IsAscii(c)); 62Debug.Assert(char.IsAscii(c)); 97Debug.Assert(char.IsAscii(value[j]));
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
329Debug.Assert(char.IsAscii(c)); 435if (char.IsAscii(value[0]) && value.AsSpan(1).ContainsAnyInRange((char)0, (char)127))
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (1)
69if (!char.IsAscii(value))
System.Private.Uri (2)
System\UriExt.cs (1)
248if (!char.IsAscii(value) || UriHelper.Unreserved.Contains(value))
System\UriHelper.cs (1)
263if (!char.IsAscii(c))
System.Runtime.Numerics (1)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
867if (sizeof(TChar) == sizeof(char) || char.IsAscii(ch))
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
406if ((uint)asciiCharsSkipped >= (uint)data.Length || char.IsAscii(data[asciiCharsSkipped]))