[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> wordcount.js (summary)

(no description)

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

Defines 7 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  loadSettings()
  matchWords()
  matchCharacters()
  count()

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

loadSettings(type, userSettings)   X-Ref
Private function to manage the settings.

return: {void|Object|*} The combined settings object to be used.
param: {string} type         The type of count to be done.
param: {Object} userSettings Custom settings for the count.

matchWords(text, regex, settings)   X-Ref
Match the regex for the type 'words'

return: {Array|{index: number, input: string}} The matched string.
param: {string} text     The text being processed
param: {string} regex    The regular expression pattern being matched
param: {Object} settings Settings object containing regular expressions for each strip function

matchCharacters(text, regex, settings)   X-Ref
Match the regex for either 'characters_excluding_spaces' or 'characters_including_spaces'

return: {Array|{index: number, input: string}} The matched string.
param: {string} text     The text being processed
param: {string} regex    The regular expression pattern being matched
param: {Object} settings Settings object containing regular expressions for each strip function

count(text, type, userSettings)   X-Ref
Count some words.

return: {Number} The word or character count.
param: {String} text         The text being processed
param: {String} type         The type of count. Accepts ;words', 'characters_excluding_spaces', or 'characters_including_spaces'.
param: {Object} userSettings Custom settings object.



Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1