regex.h, regex - regular expression matching types
#include <regex.h>
The <regex.h> header defines the structures and symbolic constants used by the regcomp(), regexec(), regerror(), and regfree() functions. See regcomp(3C).
The structure type regex_t contains the following member:
size_t re_nsub number of parenthesized subexpressions
The type size_t is defined as described in <sys/types.h>. See types.h(3HEAD).
The type regoff_t is defined as a signed integer type that can hold the largest value that can be stored in either a type off_t or type ssize_t. The structure type regmatch_t contains the following members:
regoff_t rm_so byte offset from start of string to start of substring regoff_t rm_eo byte offset from start of string of the first character after the end of substring
Values for the cflags parameter to the regcomp function are as follows:
REG_EXTENDED
REG_ICASE
REG_NOSUB
REG_NEWLINE
Values for the eflags parameter to the regexec() function are as follows:
REG_NOTBOL
REG_NOTEOL
The following constants are defined as error return values:
REG_NOMATCH
REG_BADPAT
REG_ECOLLATE
REG_ECTYPE
REG_EESCAPE
REG_ESUBREG
REG_EBRACK
REG_EPAREN
REG_EBRACE
REG_BADBR
REG_ERANGE
REG_ESPACE
REG_BADRPT
REG_ENOSYS
See attributes(5) for descriptions of the following attributes:
|
regcomp(3C), types.h(3HEAD), attributes(5), standards(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |