WordPress/wp-includes/blocks
dmsnell cbc1c955d8 Introduce Token Map: An optimized static translation class.
This patch introduces a new class: `WP_Token_Map`, 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 imposes certain restrictions on the byte length of the lookup
tokens and their replacements, but is a highly-optimized data structure for
mappings with a very high number of tokens.

Developed in https://github.com/WordPress/wordpress-develop/pull/5373
Discussed in https://core.trac.wordpress.org/ticket/60698

Fixes #60698.
Props: dmsnell, gziolo, jonsurrell, jorbin.

Built from https://develop.svn.wordpress.org/trunk@58188


git-svn-id: http://core.svn.wordpress.org/trunk@57651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-05-23 19:56:08 +00:00
..
archives Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
audio Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
avatar Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
block Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
button Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
buttons Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
calendar Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
categories Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
code Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
column Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
columns Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comment-author-name Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comment-content Editor: update Wordpress npm packages. 2023-06-27 14:24:19 +00:00
comment-date Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comment-edit-link Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comment-reply-link Editor: update Wordpress npm packages. 2023-06-27 14:24:19 +00:00
comment-template Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comments Update editor related npm packages 2023-09-26 14:23:26 +00:00
comments-pagination Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comments-pagination-next Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comments-pagination-numbers Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comments-pagination-previous Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
comments-title Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
cover Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
details Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
embed Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
file Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
footnotes Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
freeform Build/Test Tools: Update several dependencies. 2024-02-15 16:53:15 +00:00
gallery Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
group Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
heading Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
home-link Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
html Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
image Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
latest-comments Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
latest-posts Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
legacy-widget Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version. 2024-01-29 21:07:12 +00:00
list Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
list-item Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
loginout Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
media-text Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
missing Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
more Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
navigation Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
navigation-link Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
navigation-submenu Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
nextpage Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
page-list Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
page-list-item Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
paragraph Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
pattern Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-author Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-author-biography Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-author-name Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-comments-form Update editor related npm packages 2023-09-26 14:23:26 +00:00
post-content Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-date Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-excerpt Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-featured-image Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-navigation-link Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-template Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-terms Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
post-title Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
preformatted Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
pullquote Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query Build/Test Tools: Update several dependencies. 2024-02-15 16:53:15 +00:00
query-no-results Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
query-pagination Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
query-pagination-next Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
query-pagination-numbers Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
query-pagination-previous Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
query-title Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
quote Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
read-more Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
rss Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
search Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
separator Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
shortcode Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
site-logo Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
site-tagline Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
site-title Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
social-link Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
social-links Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
spacer Editor: Update Packages with the latest bug fixes for 6.5 beta1. 2024-02-13 13:12:17 +00:00
table Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
tag-cloud Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
template-part Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
term-description Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
text-columns Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
verse Editor: Update the WordPress packages to Gutenberg 17.7RC1. 2024-02-09 18:22:22 +00:00
video Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
widget-group Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
archives.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
avatar.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
block.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
blocks-json.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
calendar.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
categories.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comment-author-name.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comment-content.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comment-date.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comment-edit-link.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comment-reply-link.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comment-template.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comments-pagination-next.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comments-pagination-numbers.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comments-pagination-previous.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comments-pagination.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comments-title.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
comments.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
cover.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
file.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
footnotes.php Editor: Update Packages with the latest bug fixes for 6.5 beta 3 2024-02-27 14:48:23 +00:00
gallery.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
heading.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
home-link.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
image.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
index.php Editor: Correctly load RTL stylesheets in `register_core_block_style_handles()`. 2023-10-30 12:54:22 +00:00
latest-comments.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
latest-posts.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
legacy-widget.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
list.php Introduce Token Map: An optimized static translation class. 2024-05-23 19:56:08 +00:00
loginout.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
media-text.php Introduce Token Map: An optimized static translation class. 2024-05-23 19:56:08 +00:00
navigation-link.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
navigation-submenu.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
navigation.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
page-list-item.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
page-list.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
pattern.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-author-biography.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-author-name.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-author.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-comments-form.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-content.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-date.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-excerpt.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-featured-image.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-navigation-link.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-template.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-terms.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
post-title.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query-no-results.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query-pagination-next.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query-pagination-numbers.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query-pagination-previous.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query-pagination.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query-title.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
query.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
read-more.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
require-dynamic-blocks.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
require-static-blocks.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
rss.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
search.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
shortcode.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
site-logo.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
site-tagline.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
site-title.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
social-link.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
tag-cloud.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
template-part.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
term-description.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00
widget-group.php Editor: Update npm packages. 2024-05-23 19:39:28 +00:00