+
Point of view
ANY
deferred class REGULAR_EXPRESSION
Summary
Overview
exported features
matching capabilities
substitution capabilities
Error informations
match (text: STRING): BOOLEAN
effective function
Returns True if Current regular_expression can match the text.
match_from (text: STRING, first_index: INTEGER_32): BOOLEAN
deferred function
Returns True if Current regular_expression can match the text starting from first_index.
match_next (text: STRING): BOOLEAN
effective function
Returns True if Current regular_expression can match the same text one more time.
last_match_succeeded: BOOLEAN
effective function
Does last match succedeed?
last_match_first_index: INTEGER_32
effective function
The starting position in the text where starts the sub-string who is matching the whole pattern.
last_match_last_index: INTEGER_32
effective function
The last position in the text where starts the sub-string who is matching the whole pattern.
last_match_count: INTEGER_32
effective function
Length of the string matching the whole pattern.
group_count: INTEGER_32
effective function
Number of groups in Current regular expression.
ith_group_matched (i: INTEGER_32): BOOLEAN
effective function
Did the ith group matched during last match?
ith_group_first_index (i: INTEGER_32): INTEGER_32
effective function
First index in the last matching text of the ith group of Current.
ith_group_last_index (i: INTEGER_32): INTEGER_32
effective function
Last index in the last matching text of the ith group of Current.
ith_group_count (i: INTEGER_32): INTEGER_32
effective function
Length of the ith group of Current in the last matching.
append_heading_text (text: STRING, buffer: STRING)
effective procedure
Append in buffer the text before the matching area.
append_pattern_text (text: STRING, buffer: STRING)
effective procedure
Append in buffer the text matching the pattern.
append_tailing_text (text: STRING, buffer: STRING)
effective procedure
Append in buffer the text after the matching area.
append_ith_group (text: STRING, buffer: STRING, i: INTEGER_32)
effective procedure
Append in buffer the text of the ith group.
prepare_substitution (p: STRING)
effective procedure
Set pattern p for substitution.
last_substitution: STRING
writable attribute
You need to copy this STRING if you want to keep it.
substitute_for (text: STRING)
effective procedure
This call has to be precedeed by a sucessful matching on the same text.
substitute_in (text: STRING)
effective procedure
This call has to be precedeed by a sucessful matching on the same text.
substitute_all_for (text: STRING)
effective procedure
Every matching part is substituted.
substitute_all_in (text: STRING)
effective procedure
Every matching part is substituted.
can_substitute: BOOLEAN
effective function
Substitution is only allowed when some valid substitution pattern has been registered and after a sucessful pattern matching.
substitution_pattern_ready: BOOLEAN
writable attribute
True if some valid substitution pattern has been registered.
pattern_error_message: STRING
writable attribute
Error message for the substitution pattern.
pattern_error_position: INTEGER_32
writable attribute
Error position in the substitution pattern.