2 "name" : "Roo.util.Format",
4 "desc" : "Reusable data formatting functions",
22 "desc" : "Converts a string to all upper case letters",
27 "isConstructor" : false,
39 "desc" : "The text to convert",
47 "desc" : "The converted text"
54 "desc" : "Parse a value into a formatted date using the specified format pattern.",
55 "sig" : "(value, format)",
59 "isConstructor" : false,
71 "desc" : "The value to format",
77 "desc" : "(optional) Any valid date format string (defaults to 'm/d/Y')",
85 "desc" : "The formatted date string"
92 "desc" : "Converts a string to all lower case letters",
97 "isConstructor" : false,
109 "desc" : "The text to convert",
117 "desc" : "The converted text"
124 "desc" : "Checks a reference and converts it to empty string if it is undefined",
129 "isConstructor" : false,
141 "desc" : "Reference to check",
149 "desc" : "Empty string if converted, otherwise the original value"
154 "name" : "stripTags",
156 "desc" : "Strips all HTML tags",
161 "isConstructor" : false,
173 "desc" : "The text from which to strip tags",
181 "desc" : "The stripped text"
188 "desc" : "Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length",
189 "sig" : "(value, length)",
193 "isConstructor" : false,
205 "desc" : "The string to truncate",
211 "desc" : "The maximum length to allow before truncating",
219 "desc" : "The converted text"
224 "name" : "htmlDecode",
226 "desc" : "Convert certain characters (&, <, >, and ') from their HTML character equivalents.",
231 "isConstructor" : false,
243 "desc" : "The string to decode",
251 "desc" : "The decoded text"
256 "name" : "htmlEncode",
258 "desc" : "Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.",
263 "isConstructor" : false,
275 "desc" : "The string to encode",
283 "desc" : "The encoded text"
290 "desc" : "Size in Mb,Gb etc.",
291 "sig" : "(value, decimals)",
295 "isConstructor" : false,
307 "desc" : "The number to be formated",
313 "desc" : "how many decimal places",
321 "desc" : "the formated string"
328 "desc" : "safer version of Math.toFixed..??/",
329 "sig" : "(value, value)",
333 "isConstructor" : false,
344 "type" : "Number/String",
345 "desc" : "The numeric value to format",
350 "type" : "Number/String",
351 "desc" : "Decimal places",
359 "desc" : "The formatted currency string"
366 "desc" : "Returns a substring from within an original string",
367 "sig" : "(value, start, length)",
371 "isConstructor" : false,
383 "desc" : "The original text",
389 "desc" : "The start index of the substring",
395 "desc" : "The length of the substring",
403 "desc" : "The substring"
410 "desc" : "Format a number\neventually this should probably emulate php's number_format",
411 "sig" : "(value, decimals, delimiter)",
415 "isConstructor" : false,
426 "type" : "Number/String",
427 "desc" : "The numeric value to format",
433 "desc" : "number of decimal places",
437 "name" : "delimiter",
439 "desc" : "for thousands (default comma)",
447 "desc" : "The formatted currency string"
454 "desc" : "Format a number as US currency",
459 "isConstructor" : false,
470 "type" : "Number/String",
471 "desc" : "The numeric value to format",
479 "desc" : "The formatted currency string"
484 "name" : "capitalize",
486 "desc" : "Converts the first character only of a string to upper case",
491 "isConstructor" : false,
503 "desc" : "The text to convert",
511 "desc" : "The converted text"
518 "desc" : "Trims any whitespace from either side of a string",
523 "isConstructor" : false,
535 "desc" : "The text to trim",
543 "desc" : "The trimmed text"
548 "name" : "dateRenderer",
550 "desc" : "Returns a date rendering function that can be reused to apply a date format multiple times efficiently",
555 "isConstructor" : false,
567 "desc" : "Any valid date format string",
575 "desc" : "The date formatting function"