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
    System.Object
    CharacterSet
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.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
    System.Boolean

    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
    System.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
    System.Char lower

    The lower bound of the range

    System.Char upper

    The upper bound of the range (inclusive)

    Add(UnicodeCategory)

    Adds the specified System.Globalization.UnicodeCategory to the set.

    Declaration
    public void Add(UnicodeCategory category)
    Parameters
    Type Name Description
    System.Globalization.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
    System.Char c

    The character

    Returns
    Type Description
    System.Boolean

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

    Signature()

    Declaration
    public string Signature()
    Returns
    Type Description
    System.String

    ToString()

    System.Object.ToString()
    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation of the object, for display purposes.

    Overrides
    System.Object.ToString()

    On this page

    • Constructors
      • CharacterSet()
    • Properties
      • Negated
    • Methods
      • Add(CharacterSet)
      • Add(Char)
      • Add(Char, Char)
      • Add(UnicodeCategory)
      • Contains(Char)
      • Signature()
      • ToString()
    Back to top Generated by DocFX