User:PerfektesChaos/js/stringLib

JavaScript function library of utilities to analyze and manipulate strings.

Import

 * Include the following lines into your common.js:
 * This works also with non-WMF sites using MediaWiki.
 * Actually, it might be used anywhere since it is not depending from anything. It works even out of browsers. Please respect license statements: CC-BY-SA and GNU FDL.

Activation

 * In MediaWiki context the library establishes itself as  component of the   collection.
 * Otherwise, within interactive environment the library is built on-the-fly under  component.
 * Under non-interactive circumstances  is put into global object without   declaration.

After loading, you are supposed to integrate the library into your own application object by calling something like Within  the functions can be referred now as
 * fff

MediaWiki environment
In Mediawiki environment the following hook function may be declared: That callback function (e.g. ) triggers the actual functionality of the user application. It is called as soon loading was successfully completed.

may use one parameter. That is the application object for the library. It is supposed to be mapped into  also. It might be mapped by  into your environment.

Documentation
is represented by leading dot here.

The following items may be overwritten by user, defaulting to :
 * .locateEntities
 * .sortLang
 * .sortMode