mrab-regex の API リファレンス
mrab-regex (mrabarnett/mrab-regex) の公開 API 56 件 —— クラス 3、関数 53、メソッド 0。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: mrabarnett/mrab-regex
| 種別 | 件数 |
|---|---|
| クラス | 3 |
| 関数 | 53 |
| メソッド | 0 |
API 一覧
func
regex._main.purge()Clear the regular expression cache
class
regex._regex_core.InfoInfo about the regular expression.
class
regex._regex_core.SourceScanner for the regular expression source string.
class
regex._regex_core.errorException raised for invalid regular expressions.
func
regex._regex_core.float_to_rational(flt)Converts a float to a rational pair.
func
regex._regex_core.is_cased_f(flags, char)Checks whether a character is cased.
func
regex._regex_core.is_cased_i(info, char)Checks whether a character is cased.
func
regex._regex_core.is_decimal(string)Checks whether a string is decimal.
func
regex._regex_core.is_octal(string)Checks whether a string is octal.
func
regex._regex_core.lookup_property(property, value, positive, source=None, posix=False, encoding=0)Looks up a property.
func
regex._regex_core.make_case_flags(info)Makes the case flags.
func
regex._regex_core.make_character(info, value, in_set=False)Makes a character literal.
func
regex._regex_core.make_property(info, prop, in_set)Makes a property.
func
regex._regex_core.make_ref_group(info, name, position)Makes a group reference.
func
regex._regex_core.make_string_set(info, name)Makes a string set.
func
regex._regex_core.parse_atomic(source, info)Parses an atomic subpattern.
func
regex._regex_core.parse_call_group(source, info, ch, pos)Parses a call to a group.
func
regex._regex_core.parse_call_named_group(source, info, pos)Parses a call to a named group.
func
regex._regex_core.parse_comment(source)Parses a comment.
func
regex._regex_core.parse_common(source, info)Parses a common groups branch.
func
regex._regex_core.parse_conditional(source, info)Parses a conditional subpattern.
func
regex._regex_core.parse_constraint(source, constraints, ch)Parses a constraint.
func
regex._regex_core.parse_cost_constraint(source, constraints)Parses a cost constraint.
func
regex._regex_core.parse_cost_equation(source, constraints)Parses a cost equation.
func
regex._regex_core.parse_cost_limit(source)Parses a cost limit.
func
regex._regex_core.parse_cost_term(source, cost)Parses a cost equation term.
func
regex._regex_core.parse_escape(source, info, in_set)Parses an escape sequence.
func
regex._regex_core.parse_extension(source, info)Parses a Python extension.
func
regex._regex_core.parse_flag_set(source)Parses a set of inline flags.
func
regex._regex_core.parse_flags(source, info)Parses flags being turned on/off.
func
regex._regex_core.parse_flags_subpattern(source, info)Parses a flags subpattern.
func
regex._regex_core.parse_fuzzy(source, info, ch, case_flags)Parses a fuzzy setting, if present.
func
regex._regex_core.parse_fuzzy_compare(source)Parses a cost comparator.
func
regex._regex_core.parse_fuzzy_item(source, constraints)Parses a fuzzy setting item.
func
regex._regex_core.parse_group_ref(source, info)Parses a group reference.
func
regex._regex_core.parse_hex_escape(source, info, esc, expected_len, in_set, type)Parses a hex escape sequence.
func
regex._regex_core.parse_limited_quantifier(source)Parses a limited quantifier.
func
regex._regex_core.parse_lookaround(source, info, behind, positive)Parses a lookaround.
func
regex._regex_core.parse_name(source, allow_numeric=False, allow_group_0=False)Parses a name.
func
regex._regex_core.parse_named_char(source, info, in_set)Parses a named character.
func
regex._regex_core.parse_numeric_escape(source, info, ch, in_set)Parses a numeric escape sequence.
func
regex._regex_core.parse_octal_escape(source, info, digits, in_set)Parses an octal escape sequence.
func
regex._regex_core.parse_positional_flags(source, info, flags_on, flags_off)Parses positional flags.
func
regex._regex_core.parse_posix_class(source, info)Parses a POSIX character class.
func
regex._regex_core.parse_property(source, info, positive, in_set)Parses a Unicode property.
func
regex._regex_core.parse_quantifier(source, info, ch)Parses a quantifier.
func
regex._regex_core.parse_sequence(source, info)Parses a sequence, eg.
func
regex._regex_core.parse_set(source, info)Parses a character set.
func
regex._regex_core.parse_set_diff(source, info)Parses a set difference ([x--y]).
func
regex._regex_core.parse_set_imp_union(source, info)Parses a set implicit union ([xy]).
func
regex._regex_core.parse_set_inter(source, info)Parses a set intersection ([x&&y]).
func
regex._regex_core.parse_set_item(source, info)Parses an item in a character set.
func
regex._regex_core.parse_set_member(source, info)Parses a member in a character set.
func
regex._regex_core.parse_set_union(source, info)Parses a set union ([x||y]).
func
regex._regex_core.parse_string_set(source, info)Parses a string set reference.
func
regex._regex_core.standardise_name(name)Standardises a property or value name.
この情報について
掲載しているシグネチャは mrabarnett/mrab-regex の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。