2 "name" : "Roo.util.Format",
5 "desc" : "Reusable data formatting functions",
23 "desc" : "Converts a string to all upper case letters",
28 "isConstructor" : false,
40 "desc" : "The text to convert",
48 "desc" : "The converted text"
55 "desc" : "Parse a value into a formatted date using the specified format pattern.",
56 "sig" : "(value, format)",
60 "isConstructor" : false,
72 "desc" : "The value to format",
78 "desc" : "(optional) Any valid date format string (defaults to 'm/d/Y')",
86 "desc" : "The formatted date string"
93 "desc" : "Converts a string to all lower case letters",
98 "isConstructor" : false,
110 "desc" : "The text to convert",
118 "desc" : "The converted text"
125 "desc" : "Checks a reference and converts it to empty string if it is undefined",
130 "isConstructor" : false,
142 "desc" : "Reference to check",
150 "desc" : "Empty string if converted, otherwise the original value"
155 "name" : "stripTags",
157 "desc" : "Strips all HTML tags",
162 "isConstructor" : false,
174 "desc" : "The text from which to strip tags",
182 "desc" : "The stripped text"
189 "desc" : "Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length",
190 "sig" : "(value, length)",
194 "isConstructor" : false,
206 "desc" : "The string to truncate",
212 "desc" : "The maximum length to allow before truncating",
220 "desc" : "The converted text"
225 "name" : "htmlDecode",
227 "desc" : "Convert certain characters (&, <, >, and ') from their HTML character equivalents.",
232 "isConstructor" : false,
244 "desc" : "The string to decode",
252 "desc" : "The decoded text"
257 "name" : "htmlEncode",
259 "desc" : "Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.",
264 "isConstructor" : false,
276 "desc" : "The string to encode",
284 "desc" : "The encoded text"
291 "desc" : "Size in Mb,Gb etc.",
292 "sig" : "(value, decimals)",
296 "isConstructor" : false,
308 "desc" : "The number to be formated",
314 "desc" : "how many decimal places",
322 "desc" : "the formated string"
329 "desc" : "safer version of Math.toFixed..??/",
330 "sig" : "(value, value)",
334 "isConstructor" : false,
345 "type" : "Number/String",
346 "desc" : "The numeric value to format",
351 "type" : "Number/String",
352 "desc" : "Decimal places",
360 "desc" : "The formatted currency string"
367 "desc" : "Returns a substring from within an original string",
368 "sig" : "(value, start, length)",
372 "isConstructor" : false,
384 "desc" : "The original text",
390 "desc" : "The start index of the substring",
396 "desc" : "The length of the substring",
404 "desc" : "The substring"
411 "desc" : "Format a number\neventually this should probably emulate php's number_format",
412 "sig" : "(value, decimals, delimiter)",
416 "isConstructor" : false,
427 "type" : "Number/String",
428 "desc" : "The numeric value to format",
434 "desc" : "number of decimal places",
438 "name" : "delimiter",
440 "desc" : "for thousands (default comma)",
448 "desc" : "The formatted currency string"
455 "desc" : "Format a number as US currency",
460 "isConstructor" : false,
471 "type" : "Number/String",
472 "desc" : "The numeric value to format",
480 "desc" : "The formatted currency string"
485 "name" : "capitalize",
487 "desc" : "Converts the first character only of a string to upper case",
492 "isConstructor" : false,
504 "desc" : "The text to convert",
512 "desc" : "The converted text"
519 "desc" : "Trims any whitespace from either side of a string",
524 "isConstructor" : false,
536 "desc" : "The text to trim",
544 "desc" : "The trimmed text"
549 "name" : "dateRenderer",
551 "desc" : "Returns a date rendering function that can be reused to apply a date format multiple times efficiently",
556 "isConstructor" : false,
568 "desc" : "Any valid date format string",
576 "desc" : "The date formatting function"