Prose.Mask
ReferencesRepresents a boolean mask for each character in a string.
Constructors
Properties
Indexers
Methods
Apply
#Apply this mask to a string of the same length.
Excise
#Cut out all masked parts of a string.
Parameters:
| target (string) | Target string. |
Returns: Excised string.
GrowMaskedBlocks
#Return a new mask whose masked blocks are one character bigger on either end.
IsFullyMasked
#Test whether the entire range is masked.
IsFullyUnmasked
#Test whether the entire range is unmasked.
ShrinkMaskedBlocks
#Return a new mask whose masked blocks are one character smaller on either end.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Prose.Mask | & | Prose.Mask | Prose.Mask | 'And' two masks together. |
| Prose.Mask | | | Prose.Mask | Prose.Mask | 'Or' two masks together. |
| ! | Prose.Mask | Prose.Mask | Negate a string mask. | |