class BACKTRACKING_REGULAR_EXPRESSION
Exported features
- match (text: ABSTRACT_STRING): BOOLEAN
- match_next (text: ABSTRACT_STRING): BOOLEAN
- last_match_first_index: INTEGER_32
- last_match_last_index: INTEGER_32
- last_match_count: INTEGER_32
- group_names: TRAVERSABLE[FIXED_STRING]
- has_group_name (name: ABSTRACT_STRING): BOOLEAN
- ith_group_matched (i: INTEGER_32): BOOLEAN
- named_group_matched (name: ABSTRACT_STRING): BOOLEAN
- ith_group_first_index (i: INTEGER_32): INTEGER_32
- named_group_first_index (name: ABSTRACT_STRING): INTEGER_32
- ith_group_last_index (i: INTEGER_32): INTEGER_32
- named_group_last_index (name: ABSTRACT_STRING): INTEGER_32
- ith_group_count (i: INTEGER_32): INTEGER_32
- named_group_count (name: ABSTRACT_STRING): INTEGER_32
- for_all_matched_named_groups (text: ABSTRACT_STRING, action: PROCEDURE[TUPLE 2[FIXED_STRING, STRING]])
- append_heading_text (text: ABSTRACT_STRING, buffer: STRING)
- append_pattern_text (text: ABSTRACT_STRING, buffer: STRING)
- append_tailing_text (text: ABSTRACT_STRING, buffer: STRING)
- append_ith_group (text: ABSTRACT_STRING, buffer: STRING, i: INTEGER_32)
- append_named_group (text: ABSTRACT_STRING, buffer: STRING, name: ABSTRACT_STRING)
- named_group_value (text: ABSTRACT_STRING, name: ABSTRACT_STRING): STRING
ensure
-
match_reset: not last_match_succeeded
-
definition: scanned_string = string
-
at_the_begin: position = scanned_string.lower
require(
) or else (
)
ensure
- not last_match_succeeded
- not can_substitute
require
- text /= Void
- first_index.in_range(text.lower, text.upper + 1)
ensure
- Result = last_match_succeeded
- Result implies last_match_first_index >= first_index
- Result implies last_match_first_index.in_range(text.lower, text.upper + 1)
- Result implies last_match_first_index <= last_match_last_index + 1
matches_only_current_position:
BOOLEAN
writable attribute
set_matches_only_current_position (value:
BOOLEAN)
effective procedure
require
-
valid_pattern: pattern.is_valid
ensure
require
-
node_not_void: node /= Void
require
-
list_not_void: list /= Void
require
-
node_not_void: node /= Void
require
-
list_not_void: list /= Void
ensure
-
no_solution_when_cleared: Result implies is_off
require
-
sequence_not_void: sequence /= Void
require
-
alternative_not_void: alternative /= Void
substitute_all_in (text:
STRING)
effective procedure
substitution_pattern_ready:
BOOLEAN
writable attribute
require
-
message_not_void: message /= Void
-
has_no_error: not has_error
ensure