[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 19 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  sprintf()
  vsprintf()
  sprintf_format()
  sprintf_parse()
  sprintf_sprintf()
  postfix()
  evaluate_evaluate()
  compile()
  pluralForms()
  getPluralExpression()
  Tannin()
  ownKeys()
  _objectSpread()
  _defineProperty()
  memize()
  memoized()

Functions
Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   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

sprintf_sprintf(format)   X-Ref
Returns a formatted string. If an error occurs in applying the format, the
original format string is returned.

return: {string} The formatted string.
param: {string}    format The format of the string to generate.
param: {...*} args Arguments to apply to the format.

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.

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

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

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

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

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

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.

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

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

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

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

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

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

_defineProperty(obj, key, value)   X-Ref
No description

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

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

memoized( )   X-Ref
No description



Generated: Fri Sep 25 01:00:03 2020 Cross-referenced by PHPXref 0.7.1