2 "name" : "Roo.util.Format",
5 "desc" : "Reusable data formatting functions",
14 "desc" : "Converts a string to all upper case letters",
16 "isConstructor" : false,
18 "memberOf" : "Roo.util.Format",
27 "desc" : "The text to convert",
35 "desc" : "The converted text"
41 "desc" : "Parse a value into a formatted date using the specified format pattern.",
43 "isConstructor" : false,
45 "memberOf" : "Roo.util.Format",
54 "desc" : "The value to format",
60 "desc" : "(optional) Any valid date format string (defaults to 'm/d/Y')",
68 "desc" : "The formatted date string"
74 "desc" : "Converts a string to all lower case letters",
76 "isConstructor" : false,
78 "memberOf" : "Roo.util.Format",
87 "desc" : "The text to convert",
95 "desc" : "The converted text"
101 "desc" : "Checks a reference and converts it to empty string if it is undefined",
103 "isConstructor" : false,
105 "memberOf" : "Roo.util.Format",
114 "desc" : "Reference to check",
122 "desc" : "Empty string if converted, otherwise the original value"
127 "name" : "stripTags",
128 "desc" : "Strips all HTML tags",
130 "isConstructor" : false,
132 "memberOf" : "Roo.util.Format",
141 "desc" : "The text from which to strip tags",
149 "desc" : "The stripped text"
155 "desc" : "Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length",
157 "isConstructor" : false,
159 "memberOf" : "Roo.util.Format",
168 "desc" : "The string to truncate",
174 "desc" : "The maximum length to allow before truncating",
182 "desc" : "The converted text"
187 "name" : "htmlDecode",
188 "desc" : "Convert certain characters (&, <, >, and ') from their HTML character equivalents.",
190 "isConstructor" : false,
192 "memberOf" : "Roo.util.Format",
201 "desc" : "The string to decode",
209 "desc" : "The decoded text"
214 "name" : "htmlEncode",
215 "desc" : "Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.",
217 "isConstructor" : false,
219 "memberOf" : "Roo.util.Format",
228 "desc" : "The string to encode",
236 "desc" : "The encoded text"
242 "desc" : "safer version of Math.toFixed..??/",
244 "isConstructor" : false,
246 "memberOf" : "Roo.util.Format",
254 "type" : "Number/String",
255 "desc" : "The numeric value to format",
260 "type" : "Number/String",
261 "desc" : "Decimal places",
269 "desc" : "The formatted currency string"
275 "desc" : "Returns a substring from within an original string",
277 "isConstructor" : false,
279 "memberOf" : "Roo.util.Format",
288 "desc" : "The original text",
294 "desc" : "The start index of the substring",
300 "desc" : "The length of the substring",
308 "desc" : "The substring"
314 "desc" : "Format a number\neventually this should probably emulate php's number_format",
316 "isConstructor" : false,
318 "memberOf" : "Roo.util.Format",
326 "type" : "Number/String",
327 "desc" : "The numeric value to format",
333 "desc" : "number of decimal places",
337 "name" : "delimiter",
339 "desc" : "for thousands (default comma)",
347 "desc" : "The formatted currency string"
353 "desc" : "Format a number as US currency",
355 "isConstructor" : false,
357 "memberOf" : "Roo.util.Format",
365 "type" : "Number/String",
366 "desc" : "The numeric value to format",
374 "desc" : "The formatted currency string"
379 "name" : "capitalize",
380 "desc" : "Converts the first character only of a string to upper case",
382 "isConstructor" : false,
384 "memberOf" : "Roo.util.Format",
393 "desc" : "The text to convert",
401 "desc" : "The converted text"
407 "desc" : "Trims any whitespace from either side of a string",
409 "isConstructor" : false,
411 "memberOf" : "Roo.util.Format",
420 "desc" : "The text to trim",
428 "desc" : "The trimmed text"
433 "name" : "dateRenderer",
434 "desc" : "Returns a date rendering function that can be reused to apply a date format multiple times efficiently",
436 "isConstructor" : false,
438 "memberOf" : "Roo.util.Format",
447 "desc" : "Any valid date format string",
455 "desc" : "The date formatting function"