System.Globalization.CharUnicodeInfo.IsWhiteSpace C# (CSharp) Method

IsWhiteSpace() static private method

static private IsWhiteSpace ( String s, int index ) : bool
s String
index int
return bool
        internal static bool IsWhiteSpace(String s, int index)
        {
            BCLDebug.Assert(s != null, "s!=null");
            BCLDebug.Assert(index >= 0 && index < s.Length, "index >= 0 && index < s.Length");

            UnicodeCategory uc = GetUnicodeCategory(s, index);
            // In Unicode 3.0, U+2028 is the only character which is under the category "LineSeparator".
            // And U+2029 is th eonly character which is under the category "ParagraphSeparator".
            switch (uc) {
                case (UnicodeCategory.SpaceSeparator):
                case (UnicodeCategory.LineSeparator):
                case (UnicodeCategory.ParagraphSeparator):
                    return (true);
            }
            return (false);
        }

Same methods

CharUnicodeInfo::IsWhiteSpace ( char c ) : bool