X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/output/Ext.String.js diff --git a/docs/output/Ext.String.js b/docs/output/Ext.String.js index 9fb308aa..692b3e08 100644 --- a/docs/output/Ext.String.js +++ b/docs/output/Ext.String.js @@ -1,421 +1 @@ -Ext.data.JsonP.Ext_String({ - "allMixins": [ - - ], - "deprecated": null, - "docauthor": null, - "members": { - "cfg": [ - - ], - "method": [ - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-capitalize", - "shortDoc": "Capitalize the given string ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "string" - } - ], - "name": "capitalize", - "owner": "Ext.String", - "doc": "

Capitalize the given string

\n", - "linenr": 101, - "return": { - "type": "String", - "doc": "\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-ellipsis", - "shortDoc": "Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The string to truncate

\n", - "name": "value" - }, - { - "type": "Number", - "optional": false, - "doc": "

The maximum length to allow before truncating

\n", - "name": "length" - }, - { - "type": "Boolean", - "optional": false, - "doc": "

True to try to find a common word break

\n", - "name": "word" - } - ], - "name": "ellipsis", - "owner": "Ext.String", - "doc": "

Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length

\n", - "linenr": 110, - "return": { - "type": "String", - "doc": "

The converted text

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-escape", - "shortDoc": "Escapes the passed string for ' and \\ ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The string to escape

\n", - "name": "string" - } - ], - "name": "escape", - "owner": "Ext.String", - "doc": "

Escapes the passed string for ' and \\

\n", - "linenr": 140, - "return": { - "type": "String", - "doc": "

The escaped string

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-escapeRegex", - "shortDoc": "Escapes the passed string for use in a regular expression ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "string" - } - ], - "name": "escapeRegex", - "owner": "Ext.String", - "doc": "

Escapes the passed string for use in a regular expression

\n", - "linenr": 131, - "return": { - "type": "String", - "doc": "\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-format", - "shortDoc": "Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The tokenized string to be formatted

\n", - "name": "string" - }, - { - "type": "String", - "optional": false, - "doc": "

The value to replace token {0}

\n", - "name": "value1" - }, - { - "type": "String", - "optional": false, - "doc": "

Etc...

\n", - "name": "value2" - } - ], - "name": "format", - "owner": "Ext.String", - "doc": "

Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each\ntoken must be unique, and must increment in the format {0}, {1}, etc. Example usage:

\n\n
var cls = 'my-class', text = 'Some text';\nvar s = Ext.String.format('<div class=\"{0}\">{1}</div>', cls, text);\n// s now contains the string: '<div class=\"my-class\">Some text</div>'\n       
\n\n", - "linenr": 192, - "return": { - "type": "String", - "doc": "

The formatted string

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-htmlDecode", - "shortDoc": "Convert certain characters (&, <, >, and ') from their HTML character equivalents. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The string to decode

\n", - "name": "value" - } - ], - "name": "htmlDecode", - "owner": "Ext.String", - "doc": "

Convert certain characters (&, <, >, and ') from their HTML character equivalents.

\n", - "linenr": 41, - "return": { - "type": "String", - "doc": "

The decoded text

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-htmlEncode", - "shortDoc": "Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The string to encode

\n", - "name": "value" - } - ], - "name": "htmlEncode", - "owner": "Ext.String", - "doc": "

Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.

\n", - "linenr": 14, - "return": { - "type": "String", - "doc": "

The encoded text

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-leftPad", - "shortDoc": "Pads the left side of a string with a specified character. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The original string

\n", - "name": "string" - }, - { - "type": "Number", - "optional": false, - "doc": "

The total length of the output string

\n", - "name": "size" - }, - { - "type": "String", - "optional": true, - "doc": "

(optional) The character with which to pad the original string (defaults to empty string \" \")

\n", - "name": "character" - } - ], - "name": "leftPad", - "owner": "Ext.String", - "doc": "

Pads the left side of a string with a specified character. This is especially useful\nfor normalizing number and date strings. Example usage:

\n\n
var s = Ext.String.leftPad('123', 5, '0');\n// s now contains the string: '00123'\n       
\n\n", - "linenr": 170, - "return": { - "type": "String", - "doc": "

The padded string

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-toggle", - "shortDoc": "Utility function that allows you to easily switch a string between two alternating values. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The current string

\n", - "name": "string" - }, - { - "type": "String", - "optional": false, - "doc": "

The value to compare to the current string

\n", - "name": "value" - }, - { - "type": "String", - "optional": false, - "doc": "

The new value to use if the string already equals the first value passed in

\n", - "name": "other" - } - ], - "name": "toggle", - "owner": "Ext.String", - "doc": "

Utility function that allows you to easily switch a string between two alternating values. The passed value\nis compared to the current string, and if they are equal, the other value that was passed in is returned. If\nthey are already different, the first value passed in is returned. Note that this method returns the new value\nbut does not change the current string.

\n\n
    // alternate sort directions\n    sort = Ext.String.toggle(sort, 'ASC', 'DESC');\n\n    // instead of conditional logic:\n    sort = (sort == 'ASC' ? 'DESC' : 'ASC');\n       
\n\n", - "linenr": 149, - "return": { - "type": "String", - "doc": "

The new value

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-trim", - "shortDoc": "Trims whitespace from either end of a string, leaving spaces within the string intact. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The string to escape

\n", - "name": "string" - } - ], - "name": "trim", - "owner": "Ext.String", - "doc": "

Trims whitespace from either end of a string, leaving spaces within the string intact. Example:\n@example\nvar s = ' foo bar ';\nalert('-' + s + '-'); //alerts \"- foo bar -\"\nalert('-' + Ext.String.trim(s) + '-'); //alerts \"-foo bar-\"

\n", - "linenr": 87, - "return": { - "type": "String", - "doc": "

The trimmed string

\n" - }, - "html_filename": "String.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "String.html#Ext-String-method-urlAppend", - "shortDoc": "Appends content to the query string of a URL, handling logic for whether to place\na question mark or ampersand. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The URL to append to.

\n", - "name": "url" - }, - { - "type": "String", - "optional": false, - "doc": "

The content to append to the URL.

\n", - "name": "string" - } - ], - "name": "urlAppend", - "owner": "Ext.String", - "doc": "

Appends content to the query string of a URL, handling logic for whether to place\na question mark or ampersand.

\n", - "linenr": 72, - "return": { - "type": "void", - "doc": "

(String) The resulting URL

\n" - }, - "html_filename": "String.html" - } - ], - "property": [ - - ], - "cssVar": [ - - ], - "cssMixin": [ - - ], - "event": [ - - ] - }, - "singleton": true, - "alias": null, - "superclasses": [ - - ], - "protected": false, - "tagname": "class", - "mixins": [ - - ], - "href": "String.html#Ext-String", - "subclasses": [ - - ], - "static": false, - "author": null, - "component": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/lang/String.js", - "private": false, - "alternateClassNames": [ - - ], - "name": "Ext.String", - "doc": "

A collection of useful static methods to deal with strings

\n", - "mixedInto": [ - - ], - "linenr": 1, - "xtypes": [ - - ], - "html_filename": "String.html", - "extends": null -}); \ No newline at end of file +Ext.data.JsonP.Ext_String({"tagname":"class","html":"

Files

A collection of useful static methods to deal with strings

\n
Defined By

Methods

Capitalize the given string ...

Capitalize the given string

\n

Parameters

Returns

Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length ...

Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length

\n

Parameters

  • value : String

    The string to truncate

    \n
  • length : Number

    The maximum length to allow before truncating

    \n
  • word : Boolean

    True to try to find a common word break

    \n

Returns

Escapes the passed string for ' and \\ ...

Escapes the passed string for ' and \\

\n

Parameters

  • string : String

    The string to escape

    \n

Returns

Escapes the passed string for use in a regular expression ...

Escapes the passed string for use in a regular expression

\n

Parameters

Returns

Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. ...

Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each\ntoken must be unique, and must increment in the format {0}, {1}, etc. Example usage:

\n\n
var cls = 'my-class', text = 'Some text';\nvar s = Ext.String.format('<div class=\"{0}\">{1}</div>', cls, text);\n// s now contains the string: '<div class=\"my-class\">Some text</div>'\n       
\n\n

Parameters

  • string : String

    The tokenized string to be formatted

    \n
  • value1 : String

    The value to replace token {0}

    \n
  • value2 : String

    Etc...

    \n

Returns

Convert certain characters (&, <, >, and \") from their HTML character equivalents. ...

Convert certain characters (&, <, >, and \") from their HTML character equivalents.

\n

Parameters

  • value : String

    The string to decode

    \n

Returns

Convert certain characters (&, <, >, and \") to their HTML character equivalents for literal display in web pages. ...

Convert certain characters (&, <, >, and \") to their HTML character equivalents for literal display in web pages.

\n

Parameters

  • value : String

    The string to encode

    \n

Returns

( String string, Number size, [String character] ) : String
Pads the left side of a string with a specified character. ...

Pads the left side of a string with a specified character. This is especially useful\nfor normalizing number and date strings. Example usage:

\n\n
var s = Ext.String.leftPad('123', 5, '0');\n// s now contains the string: '00123'\n       
\n\n

Parameters

  • string : String

    The original string

    \n
  • size : Number

    The total length of the output string

    \n
  • character : String (optional)

    The character with which to pad the original string (defaults to empty string \" \")

    \n

Returns

Returns a string with a specified number of repititions a given string pattern. ...

Returns a string with a specified number of repititions a given string pattern.\nThe pattern be separated by a different string.

\n\n
 var s = Ext.String.repeat('---', 4); // = '------------'\n var t = Ext.String.repeat('--', 3, '/'); // = '--/--/--'\n
\n

Parameters

  • pattern : String

    The pattern to repeat.

    \n
  • count : Number

    The number of times to repeat the pattern (may be 0).

    \n
  • sep : String

    An option string to separate each pattern.

    \n
Utility function that allows you to easily switch a string between two alternating values. ...

Utility function that allows you to easily switch a string between two alternating values. The passed value\nis compared to the current string, and if they are equal, the other value that was passed in is returned. If\nthey are already different, the first value passed in is returned. Note that this method returns the new value\nbut does not change the current string.

\n\n
    // alternate sort directions\n    sort = Ext.String.toggle(sort, 'ASC', 'DESC');\n\n    // instead of conditional logic:\n    sort = (sort == 'ASC' ? 'DESC' : 'ASC');\n       
\n\n

Parameters

  • string : String

    The current string

    \n
  • value : String

    The value to compare to the current string

    \n
  • other : String

    The new value to use if the string already equals the first value passed in

    \n

Returns

Trims whitespace from either end of a string, leaving spaces within the string intact. ...

Trims whitespace from either end of a string, leaving spaces within the string intact. Example:\n@example\nvar s = ' foo bar ';\nalert('-' + s + '-'); //alerts \"- foo bar -\"\nalert('-' + Ext.String.trim(s) + '-'); //alerts \"-foo bar-\"

\n

Parameters

  • string : String

    The string to escape

    \n

Returns

Appends content to the query string of a URL, handling logic for whether to place\na question mark or ampersand. ...

Appends content to the query string of a URL, handling logic for whether to place\na question mark or ampersand.

\n

Parameters

  • url : String

    The URL to append to.

    \n
  • string : String

    The content to append to the URL.

    \n
","allMixins":[],"meta":{},"requires":[],"deprecated":null,"extends":null,"inheritable":false,"static":false,"superclasses":[],"singleton":true,"code_type":"assignment","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"capitalize","id":"method-capitalize"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"ellipsis","id":"method-ellipsis"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"escape","id":"method-escape"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"escapeRegex","id":"method-escapeRegex"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"format","id":"method-format"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"htmlDecode","id":"method-htmlDecode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"htmlEncode","id":"method-htmlEncode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"leftPad","id":"method-leftPad"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"repeat","id":"method-repeat"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"toggle","id":"method-toggle"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"trim","id":"method-trim"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.String","template":false,"required":null,"protected":false,"name":"urlAppend","id":"method-urlAppend"}],"event":[]},"private":false,"component":false,"name":"Ext.String","alternateClassNames":[],"id":"class-Ext.String","mixedInto":[],"xtypes":{},"files":[{"href":"String2.html#Ext-String","filename":"String.js"}]}); \ No newline at end of file