Wiki

Changes between Version 1 and Version 2 of StringBuilder

Show
Ignore:
Timestamp:
11/22/10 20:21:54 (14 years ago)
Author:
todd.a
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StringBuilder

    v1 v2  
    33Cobra strings are immutable. To create something like a mutable string, use StringBuilder: 
    44{{{ 
    5 #!python 
     5#!cobra 
    66def visitMessage(url) as String 
    77    sb = StringBuilder() 
     
    1313If you would like to use newlines in your code, try `CobraCore.newLine` which returns the newline specific to the current platform such as '\n' or '\r\n': 
    1414{{{ 
    15 #!python 
     15#!cobra 
    1616def visitMessage(url) as String 
    1717    nl = CobraCore.newLine