Search Results for

    Show / Hide Table of Contents

    Class CharacterSet

    Represents a collection of characters. This class is internal and not intended to be used directly in your code.

    Inheritance
    object
    CharacterSet
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.Core
    Assembly: Sdl.LanguagePlatform.Core.dll
    Syntax
    public class CharacterSet

    Constructors

    CharacterSet()

    Declaration
    public CharacterSet()

    Properties

    Negated

    Gets or sets whether this character set is inversed (negated) or not.

    Declaration
    public bool Negated { get; set; }
    Property Value
    Type Description
    bool

    Methods

    Add(CharacterSet)

    Adds the members of the other character set to this set. The Negated flags of both sets are ignored, which may effectively inverse membership semantics. It is advised to test the negated flags before.

    Declaration
    public void Add(CharacterSet other)
    Parameters
    Type Name Description
    CharacterSet other

    The character set to add to this set

    Add(char)

    Adds c to this set.

    Declaration
    public void Add(char c)
    Parameters
    Type Name Description
    char c

    The character to add.

    Add(char, char)

    Adds a range of characters to this set.

    Declaration
    public void Add(char lower, char upper)
    Parameters
    Type Name Description
    char lower

    The lower bound of the range

    char upper

    The upper bound of the range (inclusive)

    Add(UnicodeCategory)

    Adds the specified UnicodeCategory to the set.

    Declaration
    public void Add(UnicodeCategory category)
    Parameters
    Type Name Description
    UnicodeCategory category

    The category to add.

    Contains(char)

    Tests whether the character c is contained in this character set.

    Declaration
    public bool Contains(char c)
    Parameters
    Type Name Description
    char c

    The character

    Returns
    Type Description
    bool

    true if c is contained in the set, and false otherwise.

    Signature()

    Declaration
    public string Signature()
    Returns
    Type Description
    string

    ToString()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the object, for display purposes.

    Overrides
    object.ToString()
    In this article
    • Constructors
      • CharacterSet()
    • Properties
      • Negated
    • Methods
      • Add(CharacterSet)
      • Add(char)
      • Add(char, char)
      • Add(UnicodeCategory)
      • Contains(char)
      • Signature()
      • ToString()
    Back to top Generated by DocFX