Lines Matching refs:reg
433 onig_print_names(FILE* fp, regex_t* reg) in onig_print_names() argument
435 NameTable* t = (NameTable* )reg->name_table; in onig_print_names()
457 names_clear(regex_t* reg) in names_clear() argument
459 NameTable* t = (NameTable* )reg->name_table; in names_clear()
468 onig_names_free(regex_t* reg) in onig_names_free() argument
473 r = names_clear(reg); in onig_names_free()
476 t = (NameTable* )reg->name_table; in onig_names_free()
478 reg->name_table = (void* )NULL; in onig_names_free()
483 name_find(regex_t* reg, const UChar* name, const UChar* name_end) in name_find() argument
486 NameTable* t = (NameTable* )reg->name_table; in name_find()
497 regex_t* reg; member
511 arg->reg, arg->arg); in i_names()
520 onig_foreach_name(regex_t* reg, in onig_foreach_name() argument
525 NameTable* t = (NameTable* )reg->name_table; in onig_foreach_name()
530 narg.reg = reg; in onig_foreach_name()
532 narg.enc = reg->enc; /* should be pattern encoding. */ in onig_foreach_name()
556 onig_renumber_name_table(regex_t* reg, GroupNumRemap* map) in onig_renumber_name_table() argument
558 NameTable* t = (NameTable* )reg->name_table; in onig_renumber_name_table()
568 onig_number_of_names(regex_t* reg) in onig_number_of_names() argument
570 NameTable* t = (NameTable* )reg->name_table; in onig_number_of_names()
591 onig_print_names(FILE* fp, regex_t* reg) in onig_print_names() argument
595 NameTable* t = (NameTable* )reg->name_table; in onig_print_names()
623 names_clear(regex_t* reg) in names_clear() argument
627 NameTable* t = (NameTable* )reg->name_table; in names_clear()
652 onig_names_free(regex_t* reg) in onig_names_free() argument
657 r = names_clear(reg); in onig_names_free()
660 t = (NameTable* )reg->name_table; in onig_names_free()
662 reg->name_table = NULL; in onig_names_free()
667 name_find(regex_t* reg, UChar* name, UChar* name_end) in name_find() argument
671 NameTable* t = (NameTable* )reg->name_table; in name_find()
685 onig_foreach_name(regex_t* reg, in onig_foreach_name() argument
691 NameTable* t = (NameTable* )reg->name_table; in onig_foreach_name()
698 reg, arg); in onig_foreach_name()
706 onig_number_of_names(regex_t* reg) in onig_number_of_names() argument
708 NameTable* t = (NameTable* )reg->name_table; in onig_number_of_names()
719 name_add(regex_t* reg, UChar* name, UChar* name_end, int backref, ScanEnv* env) in name_add() argument
723 NameTable* t = (NameTable* )reg->name_table; in name_add()
728 e = name_find(reg, name, name_end); in name_add()
733 reg->name_table = (void* )t; in name_add()
738 e->name = strdup_with_null(reg->enc, name, name_end); in name_add()
764 reg->name_table = t; in name_add()
786 e->name = strdup_with_null(reg->enc, name, name_end); in name_add()
826 onig_name_to_group_numbers(regex_t* reg, const UChar* name, in onig_name_to_group_numbers() argument
831 e = name_find(reg, name, name_end); in onig_name_to_group_numbers()
848 onig_name_to_backref_number(regex_t* reg, const UChar* name, in onig_name_to_backref_number() argument
853 n = onig_name_to_group_numbers(reg, name, name_end, &nums); in onig_name_to_backref_number()
874 onig_name_to_group_numbers(regex_t* reg, const UChar* name, in onig_name_to_group_numbers() argument
881 onig_name_to_backref_number(regex_t* reg, const UChar* name, in onig_name_to_backref_number() argument
888 onig_foreach_name(regex_t* reg, in onig_foreach_name() argument
896 onig_number_of_names(regex_t* reg) in onig_number_of_names() argument
903 onig_noname_group_capture_is_active(regex_t* reg) in onig_noname_group_capture_is_active() argument
905 if (ONIG_IS_OPTION_ON(reg->options, ONIG_OPTION_DONT_CAPTURE_GROUP)) in onig_noname_group_capture_is_active()
909 if (onig_number_of_names(reg) > 0 && in onig_noname_group_capture_is_active()
910 IS_SYNTAX_BV(reg->syntax, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP) && in onig_noname_group_capture_is_active()
911 !ONIG_IS_OPTION_ON(reg->options, ONIG_OPTION_CAPTURE_GROUP)) { in onig_noname_group_capture_is_active()
3295 num = onig_name_to_group_numbers(env->reg, prev, name_end, &backs); in fetch_token()
4458 r = name_add(env->reg, name, name_end, num, env); in parse_effect()
5258 onig_parse_make_tree(Node** root, const UChar* pattern, const UChar* end, regex_t* reg, in onig_parse_make_tree() argument
5265 names_clear(reg); in onig_parse_make_tree()
5269 env->option = reg->options; in onig_parse_make_tree()
5270 env->ambig_flag = reg->ambig_flag; in onig_parse_make_tree()
5271 env->enc = reg->enc; in onig_parse_make_tree()
5272 env->syntax = reg->syntax; in onig_parse_make_tree()
5275 env->reg = reg; in onig_parse_make_tree()
5280 reg->num_mem = env->num_mem; in onig_parse_make_tree()