Skip to content

Centralize RE2 options and program size checks.#1898

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_877856012
Open

Centralize RE2 options and program size checks.#1898
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_877856012

Conversation

@copybara-service
Copy link

Centralize RE2 options and program size checks.

This change introduces a new internal utility re2_options.h to provide a consistent RE2::Options and a helper function CheckRE2 for validating compiled regular expressions against program size limits and compilation errors. This utility is now used in regex precompilation and all regex extension functions to ensure uniform handling of RE2 patterns.

This change introduces a new internal utility `re2_options.h` to provide a consistent `RE2::Options` and a helper function `CheckRE2` for validating compiled regular expressions against program size limits and compilation errors. This utility is now used in regex precompilation and all regex extension functions to ensure uniform handling of RE2 patterns.

PiperOrigin-RevId: 877856012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants