From 8493de17ef53634ea1615b58d1474d8d8824af5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Foidl?= Date: Wed, 2 Sep 2020 21:59:09 +0200 Subject: [PATCH 1/2] char.IsAscii xml doc comments --- src/libraries/System.Private.CoreLib/src/System/Char.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libraries/System.Private.CoreLib/src/System/Char.cs b/src/libraries/System.Private.CoreLib/src/System/Char.cs index 1a5f371b22d86e..a0d5650452bbff 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 iff 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. From e477781fbbb6301ee02b30af3e6484eda44b52fe Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Wed, 2 Sep 2020 16:05:46 -0700 Subject: [PATCH 2/2] Update src/libraries/System.Private.CoreLib/src/System/Char.cs --- src/libraries/System.Private.CoreLib/src/System/Char.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Char.cs b/src/libraries/System.Private.CoreLib/src/System/Char.cs index a0d5650452bbff..cfb73a4b1b6c30 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Char.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Char.cs @@ -74,7 +74,7 @@ namespace System // Return true for all characters below or equal U+007f, which is ASCII. /// - /// Returns iff is an ASCII + /// Returns if is an ASCII /// character ([ U+0000..U+007F ]). /// ///