GoogleRE2 class
Google's RE2 _ regex engine.
The regex string must adhere to the documented syntax _. The engine is
designed to complete execution in linear time as well as limit the amount of
memory used. Envoy supports program size checking via runtime. The runtime
keys re2.max_program_size.error_level and
re2.max_program_size.warn_level can be set to integers as the maximum
program size or complexity that a compiled regex can have before an
exception is thrown or a warning is logged, respectively.
re2.max_program_size.error_level defaults to 100, and
re2.max_program_size.warn_level has no default if unset (will not
check/log a warning). Envoy emits two stats for tracking the program size of
regexes: the histogram re2.program_size, which records the program size,
and the counter re2.exceeded_warn_level, which is incremented each time
the program size exceeds the warn level threshold.
Constructors
- GoogleRE2({int? maxProgramSize})
- GoogleRE2.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxProgramSize ↔ int?
-
This field controls the RE2 "program size" which is a rough estimate of
how complex a compiled regex is to evaluate.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited