Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpfLike (aString : STRING; pattern : STRING; options : INTEGER) matching : BOOLEAN; |
This function is equivalent to the EDMinterface function edmiLike. The xpxLike function implements an extended version of the LIKE operation in the Express language as defined in section 12.2.5 in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual. The extension is that optionally the operation can do case insensitive comparison, by specifying the constant XPXCASE_INSENSITIVE in the option parameter. Default operation is case sensitive matching, i.e., option = 0, constant XPXCASE_INSENSITIVE not set or constant XPXCASE_SENSITIVE set in option argument.
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
...
1 | Name | Comment |
2 |
|
...
...
Case insensitive comparison |
...
3 |
|
...
Case sensitive comparison | |
4 | xpxIGNORE_ALL_PATTERN_MATCHING_CHARS_EXCEPT_STAR |
...
Only the star “*” will be a pattern matching character, all other characters will be normal (not pattern matching) characters. | |
5 | xpxIGNORE_ALL_PATTERN_MATCHING_CHARS |
...
All defined pattern matching characters will be treated as ordinary (not pattern matching) characters | ||
6 | xpxLIKE_EQUAL | Only string comparison without any pattern matching functionality. Can only be combined with xpxCASE_SENSITIVE and xpxCASE_INSENSITIVE options. xpxCASE_SENSITIVE is default. This option is implemented for performance reasons. |
7 | xpxLIKE_UNEQUAL | Only string comparison without any pattern matching functionality. Can only be combined with xpxCASE_SENSITIVE and xpxCASE_INSENSITIVE options. xpxCASE_SENSITIVE is default. This option is implemented for performance reasons. |
Example
...
<example missing>
...