diff --git a/src/libraries/System.Private.CoreLib/src/System/Char.cs b/src/libraries/System.Private.CoreLib/src/System/Char.cs index 1a5f371b22d86e..cfb73a4b1b6c30 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Char.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Char.cs @@ -72,6 +72,14 @@ namespace System private static bool IsLatin1(char c) => (uint)c < (uint)Latin1CharInfo.Length; // Return true for all characters below or equal U+007f, which is ASCII. + + /// + /// Returns if is an ASCII + /// character ([ U+0000..U+007F ]). + /// + /// + /// Per http://www.unicode.org/glossary/#ASCII, ASCII is only U+0000..U+007F. + /// public static bool IsAscii(char c) => (uint)c <= '\x007f'; // Return the Unicode category for Unicode character <= 0x00ff.