2 "name" : "Roo.util.Format",
7 "desc" : "Reusable data formatting functions",
12 "isBuilderTop" : false,
13 "memberOf" : "Format",
27 "desc" : "Converts a string to all upper case letters",
32 "isConstructor" : false,
44 "desc" : "The text to convert",
52 "desc" : "The converted text"
59 "desc" : "Parse a value into a formatted date using the specified format pattern.",
60 "sig" : "(value, format)",
64 "isConstructor" : false,
76 "desc" : "The value to format",
82 "desc" : "(optional) Any valid date format string (defaults to 'm/d/Y')",
90 "desc" : "The formatted date string"
97 "desc" : "Converts a string to all lower case letters",
102 "isConstructor" : false,
114 "desc" : "The text to convert",
122 "desc" : "The converted text"
129 "desc" : "Checks a reference and converts it to empty string if it is undefined",
134 "isConstructor" : false,
146 "desc" : "Reference to check",
154 "desc" : "Empty string if converted, otherwise the original value"
159 "name" : "stripTags",
161 "desc" : "Strips all HTML tags",
166 "isConstructor" : false,
178 "desc" : "The text from which to strip tags",
186 "desc" : "The stripped text"
193 "desc" : "Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length",
194 "sig" : "(value, length)",
198 "isConstructor" : false,
210 "desc" : "The string to truncate",
216 "desc" : "The maximum length to allow before truncating",
224 "desc" : "The converted text"
229 "name" : "htmlDecode",
231 "desc" : "Convert certain characters (&, <, >, and ') from their HTML character equivalents.",
236 "isConstructor" : false,
248 "desc" : "The string to decode",
256 "desc" : "The decoded text"
261 "name" : "htmlEncode",
263 "desc" : "Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.",
268 "isConstructor" : false,
280 "desc" : "The string to encode",
288 "desc" : "The encoded text"
295 "desc" : "Size in Mb,Gb etc.",
296 "sig" : "(value, decimals)",
300 "isConstructor" : false,
312 "desc" : "The number to be formated",
318 "desc" : "how many decimal places",
326 "desc" : "the formated string"
333 "desc" : "safer version of Math.toFixed..??/",
334 "sig" : "(value, value)",
338 "isConstructor" : false,
349 "type" : "Number/String",
350 "desc" : "The numeric value to format",
355 "type" : "Number/String",
356 "desc" : "Decimal places",
364 "desc" : "The formatted currency string"
371 "desc" : "Returns a substring from within an original string",
372 "sig" : "(value, start, length)",
376 "isConstructor" : false,
388 "desc" : "The original text",
394 "desc" : "The start index of the substring",
400 "desc" : "The length of the substring",
408 "desc" : "The substring"
415 "desc" : "Format a number\neventually this should probably emulate php's number_format",
416 "sig" : "(value, decimals, delimiter)",
420 "isConstructor" : false,
431 "type" : "Number/String",
432 "desc" : "The numeric value to format",
438 "desc" : "number of decimal places",
442 "name" : "delimiter",
444 "desc" : "for thousands (default comma)",
452 "desc" : "The formatted currency string"
459 "desc" : "Format a number as US currency",
464 "isConstructor" : false,
475 "type" : "Number/String",
476 "desc" : "The numeric value to format",
484 "desc" : "The formatted currency string"
489 "name" : "capitalize",
491 "desc" : "Converts the first character only of a string to upper case",
496 "isConstructor" : false,
508 "desc" : "The text to convert",
516 "desc" : "The converted text"
523 "desc" : "Trims any whitespace from either side of a string",
528 "isConstructor" : false,
540 "desc" : "The text to trim",
548 "desc" : "The trimmed text"
553 "name" : "dateRenderer",
555 "desc" : "Returns a date rendering function that can be reused to apply a date format multiple times efficiently",
560 "isConstructor" : false,
572 "desc" : "Any valid date format string",
580 "desc" : "The date formatting function"