シンプルな正規表現関数 'match' を提供します.
Functions/Subroutines | |
subroutine | preprocess_pattern (pattern, symbols) |
recursive subroutine | match_here (ipat, text, length) |
logical function | hit (ipat, c) |
subroutine, public | match (pattern, text, start, length) |
Variables | |
character, save | c_escape = '#' |
integer, parameter | sym_eol = -128 |
integer, parameter | sym_anychar = 500 |
integer, parameter | sym_question = 501 |
integer, parameter | sym_plus = 502 |
integer, parameter | sym_star = 503 |
integer, parameter | sym_normal_set = 520 |
integer, parameter | sym_reversed_set = 521 |
integer, parameter | sym_headfix = 540 |
integer, parameter | sym_tailfix = 541 |
integer, parameter | sym_isdigit = 560 |
integer, parameter | sym_isalpha = 561 |
integer, parameter | sym_isword = 562 |
integer, parameter | sym_isspace = 563 |
integer, parameter | sym_isxdigit = 564 |
integer, parameter | sym_count_base = 1000 |
|
private |
Definition at line 235 of file dc_regex.f90.
References sym_anychar, sym_isalpha, sym_isdigit, sym_isspace, sym_isword, and sym_isxdigit.
Referenced by match_here().
subroutine, public dc_regex::match | ( | character(len = *), intent(in) | pattern, |
character(len = *), intent(in) | text, | ||
integer, intent(out) | start, | ||
integer, intent(out) | length | ||
) |
Definition at line 267 of file dc_regex.f90.
References match_here(), preprocess_pattern(), and sym_headfix.
Referenced by actual_iorange_dump(), dccaldatecreate1(), dccaldateparsestr1(), dcunits_com::dcunitsgettoken(), historygetdouble0(), historygetdouble1(), historygetdouble2(), historygetdouble3(), historygetdouble4(), historygetdouble5(), historygetdouble6(), historygetdouble7(), historygetint0(), historygetint1(), historygetint2(), historygetint3(), historygetint4(), historygetint5(), historygetint6(), historygetint7(), historygetreal0(), historygetreal1(), historygetreal2(), historygetreal3(), historygetreal4(), historygetreal5(), historygetreal6(), historygetreal7(), and lookup_growable_url().
|
private |
Definition at line 154 of file dc_regex.f90.
References hit(), sym_count_base, sym_eol, sym_normal_set, sym_plus, sym_question, sym_reversed_set, sym_star, and sym_tailfix.
Referenced by match().
|
private |
Definition at line 41 of file dc_regex.f90.
References c_escape, sym_anychar, sym_count_base, sym_eol, sym_headfix, sym_isalpha, sym_isdigit, sym_isspace, sym_isword, sym_isxdigit, sym_normal_set, sym_plus, sym_question, sym_reversed_set, sym_star, and sym_tailfix.
Referenced by match().
|
private |
Definition at line 21 of file dc_regex.f90.
Referenced by preprocess_pattern().
|
private |
Definition at line 23 of file dc_regex.f90.
Referenced by hit(), and preprocess_pattern().
|
private |
Definition at line 36 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 22 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 29 of file dc_regex.f90.
Referenced by match(), and preprocess_pattern().
|
private |
Definition at line 32 of file dc_regex.f90.
Referenced by hit(), and preprocess_pattern().
|
private |
Definition at line 31 of file dc_regex.f90.
Referenced by hit(), and preprocess_pattern().
|
private |
Definition at line 34 of file dc_regex.f90.
Referenced by hit(), and preprocess_pattern().
|
private |
Definition at line 33 of file dc_regex.f90.
Referenced by hit(), and preprocess_pattern().
|
private |
Definition at line 35 of file dc_regex.f90.
Referenced by hit(), and preprocess_pattern().
|
private |
Definition at line 27 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 25 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 24 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 28 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 26 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().
|
private |
Definition at line 30 of file dc_regex.f90.
Referenced by match_here(), and preprocess_pattern().