|
iDRS™ SDK 16
|
Interface for CRegexSearchContext wrapper. More...
Go to the source code of this file.
Functions | |
| CRegexSearchContext | CRegexSearchContext_Create (idrs_exception *pargException) |
| Creates a new instance of CRegexSearchContext. | |
| CRegexSearchContext | CRegexSearchContext_Create2 (const idrs_string strPattern, idrs_exception *pargException) |
| Creates a new instance of CRegexSearchContext with a pattern. | |
| const idrs_string | CRegexSearchContext_GetPattern (const CRegexSearchContext argCRegexSearchContext, idrs_exception *pargException) |
| Gets the regular expression pattern. | |
| void | CRegexSearchContext_SetPattern (CRegexSearchContext argCRegexSearchContext, const idrs_string strPattern, idrs_exception *pargException) |
| Sets the regular expression pattern. | |
| void | CRegexSearchContext_Destroy (CRegexSearchContext argCRegexSearchContext, idrs_exception *pargException) |
| Destroys a CRegexSearchContext handle. | |
Interface for CRegexSearchContext wrapper.
| CRegexSearchContext CRegexSearchContext_Create | ( | idrs_exception * | pargException | ) |
Creates a new instance of CRegexSearchContext.
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CRegexSearchContext CRegexSearchContext_Create2 | ( | const idrs_string | strPattern, |
| idrs_exception * | pargException | ||
| ) |
Creates a new instance of CRegexSearchContext with a pattern.
| strPattern | The expression pattern to be matched (either a string or a regular expression). |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CRegexSearchContext_Destroy | ( | CRegexSearchContext | argCRegexSearchContext, |
| idrs_exception * | pargException | ||
| ) |
Destroys a CRegexSearchContext handle.
| argCRegexSearchContext | CRegexSearchContext handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| const idrs_string CRegexSearchContext_GetPattern | ( | const CRegexSearchContext | argCRegexSearchContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the regular expression pattern.
| argCRegexSearchContext | CRegexSearchContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CRegexSearchContext_SetPattern | ( | CRegexSearchContext | argCRegexSearchContext, |
| const idrs_string | strPattern, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the regular expression pattern.
| argCRegexSearchContext | CRegexSearchContext handle |
| strPattern | The regular expression pattern |
| pargException | Pointer to exception structure that will be filled if an exception occurs The pattern follows the .NET regular expressions syntax (from 2021) without the backreference constructs. (https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference) As a quick hand here are the basics ^ $ : stand for begin and end of line respectively ( ) : defines a group, [ ] : defines a set of accepted characters [^ ] : defines a set of refused characters \ : is used to escape a special character or set create a control character ( \n \r \t \f ...) ? + * : respectively, 0 or 1 , at least 1 , any , of the preceding character/set/group | : the regex will match if either the left part or the right part of the vertical bar match. If in a group, it will apply to the group only and not the whole expression { } : defines a function to be used, not a range of repetion for the previous character/set/group. Please refer to the link provided |