[ Index ]

PHP Cross Reference of WordPress




/wp-includes/js/dist/ -> i18n.js (summary)

Memize options object.

File Size: 1711 lines (52 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 14 functions


Functions that are not part of a class:

memize( fn, options )   X-Ref
Accepts a function to be memoized, and returns a new memoized function, with
optional options.

param: {F}             fn        Function to memoize.
param: {MemizeOptions} [options] Options object.
return: {F & MemizeMemoizedFunction} Memoized function.

memoized( )   X-Ref
No description

sprintf(key)   X-Ref
No description

vsprintf(fmt, argv)   X-Ref
No description

sprintf_format(parse_tree, argv)   X-Ref
No description

sprintf_parse(fmt)   X-Ref
No description

__webpack_require__(moduleId)   X-Ref
No description

sprintf_sprintf(format)   X-Ref
No description

postfix( expression )   X-Ref
Given a C expression, returns the equivalent postfix (Reverse Polish)
notation terms as an array.

If a postfix string is desired, simply `.join( ' ' )` the result.

param: {string} expression C expression.
return: {string[]} Postfix terms.

evaluate( postfix, variables )   X-Ref
Given an array of postfix terms and operand variables, returns the result of
the postfix evaluation.

param: {string[]} postfix   Postfix terms.
param: {Object}   variables Operand variables.
return: {*} Result of evaluation.

compile( expression )   X-Ref
Given a C expression, returns a function which can be called to evaluate its

param: {string} expression C expression.
return: {(variables?:{[variable:string]:*})=>*} Compiled evaluator.

pluralForms( expression )   X-Ref
Given a C expression, returns a function which, when called with a value,
evaluates the result with the value assumed to be the "n" variable of the
expression. The result will be coerced to its numeric equivalent.

param: {string} expression C expression.
return: {Function} Evaluator function.

getPluralExpression( pf )   X-Ref
Given a specific locale data's config `plural_forms` value, returns the

param: {string} pf Locale data plural forms.
return: {string} Plural forms expression.

Tannin( data, options )   X-Ref
Tannin constructor.

param: {TanninLocaleData} data      Jed-formatted locale data.
param: {TanninOptions}    [options] Tannin options.

Generated: Thu Jun 30 01:00:03 2022 Cross-referenced by PHPXref 0.7.1