+ * @return {String} The string with embedded <br/> tags in place of newlines.
+ */
+ nl2br : function(v) {
+ return Ext.isEmpty(v) ? '' : v.replace(nl2brRe, '<br/>');
+ },
+
+<span id='Ext-util.Format-property-capitalize'> /**
+</span> * Capitalize the given string. See {@link Ext.String#capitalize}.
+ */
+ capitalize: Ext.String.capitalize,
+
+<span id='Ext-util.Format-property-ellipsis'> /**
+</span> * Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length.
+ * See {@link Ext.String#ellipsis}.
+ */
+ ellipsis: Ext.String.ellipsis,
+
+<span id='Ext-util.Format-property-format'> /**
+</span> * Formats to a string. See {@link Ext.String#format}
+ */
+ format: Ext.String.format,
+
+<span id='Ext-util.Format-property-htmlDecode'> /**
+</span> * Convert certain characters (&, <, >, and ') from their HTML character equivalents.
+ * See {@link Ext.string#htmlDecode}.
+ */
+ htmlDecode: Ext.String.htmlDecode,
+
+<span id='Ext-util.Format-property-htmlEncode'> /**
+</span> * Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.
+ * See {@link Ext.String#htmlEncode}.
+ */
+ htmlEncode: Ext.String.htmlEncode,
+
+<span id='Ext-util.Format-property-leftPad'> /**
+</span> * Adds left padding to a string. See {@link Ext.String#leftPad}
+ */
+ leftPad: Ext.String.leftPad,
+
+<span id='Ext-util.Format-property-trim'> /**
+</span> * Trims any whitespace from either side of a string. See {@link Ext.String#trim}.
+ */
+ trim : Ext.String.trim,
+
+<span id='Ext-util.Format-method-parseBox'> /**
+</span> * Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
+ * (e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result)
+ * @param {Number|String} v The encoded margins
+ * @return {Object} An object with margin sizes for top, right, bottom and left
+ */
+ parseBox : function(box) {
+ if (Ext.isNumber(box)) {
+ box = box.toString();
+ }
+ var parts = box.split(' '),
+ ln = parts.length;
+
+ if (ln == 1) {
+ parts[1] = parts[2] = parts[3] = parts[0];
+ }
+ else if (ln == 2) {
+ parts[2] = parts[0];
+ parts[3] = parts[1];
+ }
+ else if (ln == 3) {
+ parts[3] = parts[1];
+ }
+
+ return {
+ top :parseInt(parts[0], 10) || 0,
+ right :parseInt(parts[1], 10) || 0,
+ bottom:parseInt(parts[2], 10) || 0,
+ left :parseInt(parts[3], 10) || 0
+ };
+ },
+
+<span id='Ext-util.Format-method-escapeRegex'> /**
+</span> * Escapes the passed string for use in a regular expression
+ * @param {String} str
+ * @return {String}