Commit 90ab28d
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 b4889e4 commit 90ab28d
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