[]
Method that filters any unwanted characters out of a string to be checked.
string FilterWord(string word)
| Type | Name | Description |
|---|---|---|
| string | word | Raw text to be checked. |
| Type | Description |
|---|---|
| string | A modified word to be checked, null to skip checking this string, or the same word if no filtering is required. |
This method is useful in custom parsers that should ignore specific characters or words.
For example, a parser that parses strings with accelerator characters should filter out the ampersands before the word is checked.