Class CharacterSet
Represents a collection of characters.
Inheritance
Inherited Members
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.
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 |
|
Signature()
Declaration
public string Signature()
Returns
Type | Description |
---|---|
System.String |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of the object, for display purposes. |