Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Token Map: An optimized static translation class.
This patch introduces a new class: `WP_Token_Map`, which is designed for efficient lookup and translation of static mappings between string keys or tokens, and string replacements (for example, HTML character references). The token map incorporates certain limitations on the string length of the tokens, but takes advantage of multiple optimizations to efficiently find and replace tokens in a string.
- Loading branch information