Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

hollywoodlibs:tables:conversion [2016/10/16 08:49] (versione attuale)
admin creata
Linea 1: Linea 1:
 +====== Table Conversion Functions ======
 +
 +All **Table conversion** functions are mapped on the **TB.Convert** table.
 +
 +  * TB.Convert.String2Table(string,​ separator)
 +  * TB.Convert.Table2String(table,​ separator)
 +
 +----
 + \\
 +===== TB.Convert.String2Table(string,​ separator) =====
 +  result = TB.Convert.String2Table(string,​ separator)
 +
 + ​Converts the given '​string'​ into a table splitting its items using the provided '​separator'​ as delimiter between each item. Returns the resulting table.\\ ​
 +Leading spaces will be trimmed out from the resulting items.
 +
 +<color #​000000>​__INPUT__</​color>​\\ ​
 +
 +  * <color #​008800>​string</​color>​ : The string to split
 +  * <color #​008800>​separator</​color>​ : The items delimiter (one character)
 +
 +<color #​000000>​__OUTPUT__</​color>​\\ ​
 +
 +  * <color #​008800>​result</​color>​ : The resulting table
 +
 +----
 + \\
 +===== TB.Convert.Table2String(table,​ separator) =====
 +  result = TB.Convert.Table2String(table,​ separator)
 +
 + ​Converts all '​table'​ items into a string using '​separator'​ as delimiter between each item. Returns the resulting string.
 +
 +<color #​000000>​__INPUT__</​color>​\\ ​
 +
 +  * <color #​008800>​table</​color>​ : The table of strings to convert
 +  * <color #​008800>​separator</​color>​ : The character to use as a separator (one character)
 +
 +<color #​000000>​__OUTPUT__</​color>​\\ ​
 +
 +  * <color #​008800>​result</​color>​ : The resulting string
 +
 +<color #​000000>​__NOTE__</​color>​\\ ​
 + This function is usable on tables of strings with consecutive numeric indexes starting from 0.\\ 
 +
  
hollywoodlibs/tables/conversion.txt ยท Ultima modifica: 2016/10/16 08:49 da admin
CC Attribution-Noncommercial 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0