Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
api:text [2015/01/14 23:40]
127.0.0.1 external edit
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)`   
-  ​Deprecateduse [[api:serialization|serialization.serialize]]+  ​Wraps the provided string to specified width. 
-- `text.unserialize(value: string): any`   +- `text.wrappedLines(value:​stringwidth:number, maxWidth:​number)` ​  
-  ​Deprecateduse [[api:​serialization|serialization.unserialize]].+  Returns a wrapper function around `text.wrap`
 +- `text.tokenize(value:​string)` ​  
 +  ​Splits the input string into a tableusing space as the delimiter.
  
 Contents Contents
------------+----------
 {{page>​api:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​api:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}