Changeset 331 for EcnlProtoTool/trunk/onigmo-6.1.3/src/regparse.h
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/onigmo-6.1.3
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/onigmo-6.1.3/src/regparse.h
r321 r331 1 #ifndef REGPARSE_H2 #define REGPARSE_H1 #ifndef ONIGMO_REGPARSE_H 2 #define ONIGMO_REGPARSE_H 3 3 /********************************************************************** 4 4 regparse.h - Onigmo (Oniguruma-mod) (regular expression library) … … 6 6 /*- 7 7 * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> 8 * Copyright (c) 2011 8 * Copyright (c) 2011-2016 K.Takata <kentkt AT csc DOT jp> 9 9 * All rights reserved. 10 10 * … … 33 33 #include "regint.h" 34 34 35 RUBY_SYMBOL_EXPORT_BEGIN 36 35 37 /* node type */ 36 38 #define NT_STR 0 … … 94 96 #define ENCLOSE_STOP_BACKTRACK (1<<2) 95 97 #define ENCLOSE_CONDITION (1<<3) 98 #define ENCLOSE_ABSENT (1<<4) 96 99 97 100 #define NODE_STR_MARGIN 16 … … 289 292 OnigCaseFoldType case_fold_flag; 290 293 OnigEncoding enc; 291 OnigSyntaxType*syntax;294 const OnigSyntaxType* syntax; 292 295 BitStatusType capture_history; 293 296 BitStatusType bt_mem_start; … … 316 319 int has_recursion; 317 320 #endif 321 unsigned int parse_depth; 322 int warnings_flag; 323 #ifdef RUBY 324 const char* sourcefile; 325 int sourceline; 326 #endif 318 327 } ScanEnv; 319 328 … … 328 337 } GroupNumRemap; 329 338 330 extern int onig_renumber_name_table P_((regex_t* reg, GroupNumRemap* map)); 331 #endif 332 333 extern int onig_strncmp P_((const UChar* s1, const UChar* s2, int n)); 334 extern void onig_strcpy P_((UChar* dest, const UChar* src, const UChar* end)); 335 extern void onig_scan_env_set_error_string P_((ScanEnv* env, int ecode, UChar* arg, UChar* arg_end)); 336 extern int onig_scan_unsigned_number P_((UChar** src, const UChar* end, OnigEncoding enc)); 337 extern void onig_reduce_nested_quantifier P_((Node* pnode, Node* cnode)); 338 extern void onig_node_conv_to_str_node P_((Node* node, int raw)); 339 extern int onig_node_str_cat P_((Node* node, const UChar* s, const UChar* end)); 340 extern int onig_node_str_set P_((Node* node, const UChar* s, const UChar* end)); 341 extern void onig_node_free P_((Node* node)); 342 extern Node* onig_node_new_enclose P_((int type)); 343 extern Node* onig_node_new_anchor P_((int type)); 344 extern Node* onig_node_new_str P_((const UChar* s, const UChar* end)); 345 extern Node* onig_node_new_list P_((Node* left, Node* right)); 346 extern Node* onig_node_list_add P_((Node* list, Node* x)); 347 extern Node* onig_node_new_alt P_((Node* left, Node* right)); 348 extern void onig_node_str_clear P_((Node* node)); 349 extern int onig_free_node_list P_((void)); 350 extern int onig_names_free P_((regex_t* reg)); 351 extern int onig_parse_make_tree P_((Node** root, const UChar* pattern, const UChar* end, regex_t* reg, ScanEnv* env)); 352 extern int onig_free_shared_cclass_table P_((void)); 339 extern int onig_renumber_name_table(regex_t* reg, GroupNumRemap* map); 340 #endif 341 342 extern int onig_strncmp(const UChar* s1, const UChar* s2, int n); 343 extern void onig_strcpy(UChar* dest, const UChar* src, const UChar* end); 344 extern void onig_scan_env_set_error_string(ScanEnv* env, int ecode, UChar* arg, UChar* arg_end); 345 extern int onig_scan_unsigned_number(UChar** src, const UChar* end, OnigEncoding enc); 346 extern void onig_reduce_nested_quantifier(Node* pnode, Node* cnode); 347 extern void onig_node_conv_to_str_node(Node* node, int raw); 348 extern int onig_node_str_cat(Node* node, const UChar* s, const UChar* end); 349 extern int onig_node_str_set(Node* node, const UChar* s, const UChar* end); 350 extern void onig_node_free(Node* node); 351 extern Node* onig_node_new_enclose(int type); 352 extern Node* onig_node_new_anchor(int type); 353 extern Node* onig_node_new_str(const UChar* s, const UChar* end); 354 extern Node* onig_node_new_list(Node* left, Node* right); 355 extern Node* onig_node_list_add(Node* list, Node* x); 356 extern Node* onig_node_new_alt(Node* left, Node* right); 357 extern void onig_node_str_clear(Node* node); 358 extern int onig_names_free(regex_t* reg); 359 extern int onig_parse_make_tree(Node** root, const UChar* pattern, const UChar* end, regex_t* reg, ScanEnv* env); 360 extern int onig_free_shared_cclass_table(void); 353 361 354 362 #ifdef ONIG_DEBUG 355 # ifdef USE_NAMED_GROUP363 # ifdef USE_NAMED_GROUP 356 364 extern int onig_print_names(FILE*, regex_t*); 357 #endif 358 #endif 359 360 #endif /* REGPARSE_H */ 365 # endif 366 #endif 367 368 RUBY_SYMBOL_EXPORT_END 369 370 #endif /* ONIGMO_REGPARSE_H */
Note:
See TracChangeset
for help on using the changeset viewer.