The
String Handler compares strings with options to ignore white space and ignore case. Cell prefixes can be used to identify the cells that use the handler, or it can be used on all cells with string types.
| configuration setup |
| service |
| add operator | CompareString |
The default option is to ignore whitespace.
| string |
| field | field? |
| h e l l o | he llo |
| null | fail[he llo] |
A cell prefix can be configured to identify the cells to be compared by the handler.
| configuration setup |
| get item | fitSharp.Fit.Operators.CompareString |
| add | w- |
| string |
| field | field? |
| h e l l o | w-he llo |
| h e l l o | fail[he llo] |
Comparison options can be configured for a cell prefix.
| configuration setup |
| get item | fitSharp.Fit.Operators.CompareString |
| add | i-,IgnoreCase |
| add | w*,IgnoreWhitespace |
| add | b!,IgnoreCase,IgnoreWhitespace |
| string |
| field | field? |
| hello | i-HeLlo |
| hello | fail[i-he llo] |
| hello | fail[HeLlo] |
| h e l l o | w*he llo |
| h e l l o | b!He Llo |
Comparison options can be configured for an empty prefix.
| configuration setup |
| get item | fitSharp.Fit.Operators.CompareString |
| add | ,IgnoreCase |
| string |
| field | field? |
| hello | HeLlo |
| h e l l o | fail[he llo] |