2 "name" : "Roo.util.Format",
5 "desc" : "Reusable data formatting functions",
23 "desc" : "Converts a string to all upper case letters",
25 "isConstructor" : false,
27 "memberOf" : "Roo.util.Format",
36 "desc" : "The text to convert",
44 "desc" : "The converted text"
50 "desc" : "Parse a value into a formatted date using the specified format pattern.",
52 "isConstructor" : false,
54 "memberOf" : "Roo.util.Format",
63 "desc" : "The value to format",
69 "desc" : "(optional) Any valid date format string (defaults to 'm/d/Y')",
77 "desc" : "The formatted date string"
83 "desc" : "Converts a string to all lower case letters",
85 "isConstructor" : false,
87 "memberOf" : "Roo.util.Format",
96 "desc" : "The text to convert",
104 "desc" : "The converted text"
110 "desc" : "Checks a reference and converts it to empty string if it is undefined",
112 "isConstructor" : false,
114 "memberOf" : "Roo.util.Format",
123 "desc" : "Reference to check",
131 "desc" : "Empty string if converted, otherwise the original value"
136 "name" : "stripTags",
137 "desc" : "Strips all HTML tags",
139 "isConstructor" : false,
141 "memberOf" : "Roo.util.Format",
150 "desc" : "The text from which to strip tags",
158 "desc" : "The stripped text"
164 "desc" : "Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length",
166 "isConstructor" : false,
168 "memberOf" : "Roo.util.Format",
177 "desc" : "The string to truncate",
183 "desc" : "The maximum length to allow before truncating",
191 "desc" : "The converted text"
196 "name" : "htmlDecode",
197 "desc" : "Convert certain characters (&, <, >, and ') from their HTML character equivalents.",
199 "isConstructor" : false,
201 "memberOf" : "Roo.util.Format",
210 "desc" : "The string to decode",
218 "desc" : "The decoded text"
223 "name" : "htmlEncode",
224 "desc" : "Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.",
226 "isConstructor" : false,
228 "memberOf" : "Roo.util.Format",
237 "desc" : "The string to encode",
245 "desc" : "The encoded text"
251 "desc" : "safer version of Math.toFixed..??/",
253 "isConstructor" : false,
255 "memberOf" : "Roo.util.Format",
263 "type" : "Number/String",
264 "desc" : "The numeric value to format",
269 "type" : "Number/String",
270 "desc" : "Decimal places",
278 "desc" : "The formatted currency string"
284 "desc" : "Returns a substring from within an original string",
286 "isConstructor" : false,
288 "memberOf" : "Roo.util.Format",
297 "desc" : "The original text",
303 "desc" : "The start index of the substring",
309 "desc" : "The length of the substring",
317 "desc" : "The substring"
323 "desc" : "Format a number\neventually this should probably emulate php's number_format",
325 "isConstructor" : false,
327 "memberOf" : "Roo.util.Format",
335 "type" : "Number/String",
336 "desc" : "The numeric value to format",
342 "desc" : "number of decimal places",
346 "name" : "delimiter",
348 "desc" : "for thousands (default comma)",
356 "desc" : "The formatted currency string"
362 "desc" : "Format a number as US currency",
364 "isConstructor" : false,
366 "memberOf" : "Roo.util.Format",
374 "type" : "Number/String",
375 "desc" : "The numeric value to format",
383 "desc" : "The formatted currency string"
388 "name" : "capitalize",
389 "desc" : "Converts the first character only of a string to upper case",
391 "isConstructor" : false,
393 "memberOf" : "Roo.util.Format",
402 "desc" : "The text to convert",
410 "desc" : "The converted text"
416 "desc" : "Trims any whitespace from either side of a string",
418 "isConstructor" : false,
420 "memberOf" : "Roo.util.Format",
429 "desc" : "The text to trim",
437 "desc" : "The trimmed text"
442 "name" : "dateRenderer",
443 "desc" : "Returns a date rendering function that can be reused to apply a date format multiple times efficiently",
445 "isConstructor" : false,
447 "memberOf" : "Roo.util.Format",
456 "desc" : "Any valid date format string",
464 "desc" : "The date formatting function"