Class CharacterSet
Represents a collection of characters.
Inheritance
Inherited Members
Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class CharacterSetConstructors
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 | 
|---|---|
| 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 | 
|---|---|---|
| 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 System.Globalization.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 | 
|---|---|
| Boolean | 
 | 
Signature()
Declaration
public string Signature()Returns
| Type | Description | 
|---|---|
| String | 
ToString()
System.Object.ToString()
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| String | A string representation of the object, for display purposes. |