File: wp-includes/class-wp-token-map.php
-
Export the token map for quick loading in PHP source code.
-
Compares two strings, returning the longest, or whichever is first alphabetically if they are the same length.
-
Creates a token map from a pre-computed table.
-
methodWP_Token_Map::contains()
Indicates if a given word is a lookup key in the map.
-
If the text starting at a given offset is a lookup key in the map, return the corresponding transformation from the map, else `false`.
-
Finds a match for a short word at the index.
-
methodWP_Token_Map::to_array()
Exports the token map into an associate array of key/value pairs.
-
classWP_Token_Map
WP_Token_Map class.
-
Create a token map using an associative array of key/value pairs as the input.