| regex.h | | regex.h | |
| /* | | /* | |
| regex.h - POSIX.2 compatible regexp interface and TRE extensions | | regex.h - POSIX.2 compatible regexp interface and TRE extensions | |
| | | | |
|
| Copyright (C) 2001-2003 Ville Laurikari <vl@iki.fi>. | | Copyright (C) 2001-2004 Ville Laurikari <vl@iki.fi>. | |
| | | | |
| This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License version 2 (June | | it under the terms of the GNU General Public License version 2 (June | |
| 1991) as published by the Free Software Foundation. | | 1991) as published by the Free Software Foundation. | |
| | | | |
| This program is distributed in the hope that it will be useful, | | This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| GNU General Public License for more details. | | GNU General Public License for more details. | |
| | | | |
| | | | |
| skipping to change at line 30 | | skipping to change at line 30 | |
| | | | |
| #ifndef TRE_REGEX_H | | #ifndef TRE_REGEX_H | |
| #define TRE_REGEX_H 1 | | #define TRE_REGEX_H 1 | |
| | | | |
| #include "tre-config.h" | | #include "tre-config.h" | |
| | | | |
| #ifdef HAVE_SYS_TYPES_H | | #ifdef HAVE_SYS_TYPES_H | |
| #include <sys/types.h> | | #include <sys/types.h> | |
| #endif /* HAVE_SYS_TYPES_H */ | | #endif /* HAVE_SYS_TYPES_H */ | |
| | | | |
|
| | | #ifdef HAVE_LIBUTF8_H | |
| | | #include <libutf8.h> | |
| | | #endif /* HAVE_LIBUTF8_H */ | |
| | | | |
| #ifdef TRE_USE_SYSTEM_REGEX_H | | #ifdef TRE_USE_SYSTEM_REGEX_H | |
| /* Include the system regex.h to make TRE ABI compatible with the | | /* Include the system regex.h to make TRE ABI compatible with the | |
| system regex. */ | | system regex. */ | |
| #include TRE_SYSTEM_REGEX_H_PATH | | #include TRE_SYSTEM_REGEX_H_PATH | |
| #endif /* TRE_USE_SYSTEM_REGEX_H */ | | #endif /* TRE_USE_SYSTEM_REGEX_H */ | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
| | | | |
| skipping to change at line 184 | | skipping to change at line 188 | |
| int regawexec(const regex_t *preg, const wchar_t *string, | | int regawexec(const regex_t *preg, const wchar_t *string, | |
| regamatch_t *match, regaparams_t params, int eflags); | | regamatch_t *match, regaparams_t params, int eflags); | |
| int regawnexec(const regex_t *preg, const wchar_t *string, size_t len, | | int regawnexec(const regex_t *preg, const wchar_t *string, size_t len, | |
| regamatch_t *match, regaparams_t params, int eflags); | | regamatch_t *match, regaparams_t params, int eflags); | |
| #endif /* TRE_WCHAR */ | | #endif /* TRE_WCHAR */ | |
| | | | |
| /* Sets the parameters to default values. */ | | /* Sets the parameters to default values. */ | |
| void regaparams_default(regaparams_t *params); | | void regaparams_default(regaparams_t *params); | |
| #endif /* TRE_APPROX */ | | #endif /* TRE_APPROX */ | |
| | | | |
|
| | | /* Returns the version string. The returned string is static. */ | |
| | | char *tre_version(void); | |
| | | | |
| | | int tre_config(int query, void *result); | |
| | | | |
| | | enum { | |
| | | TRE_CONFIG_APPROX, | |
| | | TRE_CONFIG_WCHAR, | |
| | | TRE_CONFIG_MULTIBYTE, | |
| | | TRE_CONFIG_SYSTEM_ABI, | |
| | | TRE_CONFIG_VERSION | |
| | | }; | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| } | | } | |
| #endif | | #endif | |
| #endif /* TRE_REGEX_H */ | | #endif /* TRE_REGEX_H */ | |
| | | | |
| /* EOF */ | | /* EOF */ | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 18 lines changed or added | |
|