Skip to content

Commit 90ab28d

Browse files
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 efficiently
1 parent b4889e4 commit 90ab28d

6 files changed

Lines changed: 4695 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)