Go to the source code of this file.
Defines | |
I hate rm_so/eo name! | |
| #define | begin rm_so |
| #define | end rm_eo |
Functions | |
| regmatch_t | regfind (const char *from, const char *exp) |
| Searches for a regular expression in the given string. | |
| regoff_t | regfind_start (const char *from, const char *exp) |
| Searches for a regular expression in the given string, returning only the starting offset. | |
| regoff_t | regfind_end (const char *from, const char *exp) |
| Searches for a regular expression in the given string, returning only the ending offset. | |
| int | regfind_count (const char *from, const char *exp, int offset) |
| Searches for a regular expression in the given string, returning the number of occurrences. | |
Definition in file regularexp.h.
| #define begin rm_so |
Definition at line 25 of file regularexp.h.
| #define end rm_eo |
Definition at line 26 of file regularexp.h.
| regmatch_t regfind | ( | const char * | from, | |
| const char * | exp | |||
| ) |
Searches for a regular expression in the given string.
| from | the source string | |
| exp | the regular expression |
| int regfind_count | ( | const char * | from, | |
| const char * | exp, | |||
| int | offset | |||
| ) |
Searches for a regular expression in the given string, returning the number of occurrences.
| offset | if we want to count "baab" and the last b must be used to form another match we can say to go back offset characters after each match. so passing offset = 1 "baabaab" counts 2 instead of 1. |
| regoff_t regfind_end | ( | const char * | from, | |
| const char * | exp | |||
| ) |
Searches for a regular expression in the given string, returning only the ending offset.
| regoff_t regfind_start | ( | const char * | from, | |
| const char * | exp | |||
| ) |
Searches for a regular expression in the given string, returning only the starting offset.
1.5.6