File indexing completed on 2025-01-17 09:55:53
0001 #ifndef ONIGGNU_H
0002 #define ONIGGNU_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 #include "oniguruma.h"
0033
0034 #ifdef __cplusplus
0035 extern "C" {
0036 #endif
0037
0038 enum {
0039 RE_MBCTYPE_ASCII = 0,
0040 RE_MBCTYPE_EUC = 1,
0041 RE_MBCTYPE_SJIS = 2,
0042 RE_MBCTYPE_UTF8 = 3
0043 };
0044
0045
0046 #ifndef RE_NREGS
0047 #define RE_NREGS ONIG_NREGION
0048 #endif
0049
0050 #define RE_OPTION_IGNORECASE ONIG_OPTION_IGNORECASE
0051 #define RE_OPTION_EXTENDED ONIG_OPTION_EXTEND
0052 #define RE_OPTION_MULTILINE ONIG_OPTION_MULTILINE
0053 #define RE_OPTION_SINGLELINE ONIG_OPTION_SINGLELINE
0054 #define RE_OPTION_LONGEST ONIG_OPTION_FIND_LONGEST
0055 #define RE_OPTION_POSIXLINE (RE_OPTION_MULTILINE|RE_OPTION_SINGLELINE)
0056 #define RE_OPTION_FIND_NOT_EMPTY ONIG_OPTION_FIND_NOT_EMPTY
0057 #define RE_OPTION_NEGATE_SINGLELINE ONIG_OPTION_NEGATE_SINGLELINE
0058 #define RE_OPTION_DONT_CAPTURE_GROUP ONIG_OPTION_DONT_CAPTURE_GROUP
0059 #define RE_OPTION_CAPTURE_GROUP ONIG_OPTION_CAPTURE_GROUP
0060
0061
0062 ONIG_EXTERN
0063 void re_mbcinit P_((int));
0064 ONIG_EXTERN
0065 int re_compile_pattern P_((const char*, int, struct re_pattern_buffer*, char* err_buf));
0066 ONIG_EXTERN
0067 int re_recompile_pattern P_((const char*, int, struct re_pattern_buffer*, char* err_buf));
0068 ONIG_EXTERN
0069 void re_free_pattern P_((struct re_pattern_buffer*));
0070 ONIG_EXTERN
0071 int re_adjust_startpos P_((struct re_pattern_buffer*, const char*, int, int, int));
0072 ONIG_EXTERN
0073 int re_search P_((struct re_pattern_buffer*, const char*, int, int, int, struct re_registers*));
0074 ONIG_EXTERN
0075 int re_match P_((struct re_pattern_buffer*, const char *, int, int, struct re_registers*));
0076 ONIG_EXTERN
0077 void re_set_casetable P_((const char*));
0078 ONIG_EXTERN
0079 void re_free_registers P_((struct re_registers*));
0080 ONIG_EXTERN
0081 int re_alloc_pattern P_((struct re_pattern_buffer**));
0082
0083 #ifdef __cplusplus
0084 }
0085 #endif
0086
0087 #endif