This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
api:text [2014/07/07 12:21] vexatos created |
api:text [2015/04/11 19:13] (current) rashy |
||
---|---|---|---|
Line 11: | Line 11: | ||
- `text.trim(value: string): string` | - `text.trim(value: string): string` | ||
Removes whitespace characters from the start and end of a string. | Removes whitespace characters from the start and end of a string. | ||
- | - `text.serialize(value: any except functions): string` | + | - `text.wrap(value:string, width:number, maxWidth:number)` |
- | Deprecated, use [[api:serialization|serialization.serialize]]. | + | Wraps the provided string to specified width. |
- | - `text.unserialize(value: string): any` | + | - `text.wrappedLines(value:string, width:number, maxWidth:number)` |
- | Deprecated, use [[api:serialization|serialization.unserialize]]. | + | Returns a wrapper function around `text.wrap`. |
+ | - `text.tokenize(value:string)` | ||
+ | Splits the input string into a table, using space as the delimiter. | ||
Contents | Contents | ||
- | ----------- | + | ---------- |
{{page>api:contents&noheader&noeditbutton&nouser&nofooter}} | {{page>api:contents&noheader&noeditbutton&nouser&nofooter}} |