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