Commit 03adf30
committed
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 efficiently1 parent 6f7cd05 commit 03adf30
6 files changed
Lines changed: 4695 additions & 0 deletions
File tree
- src
- wp-includes
- html-api
- tests/phpunit
- data
- tests
- html-api
- wp-token-map
0 commit comments