Changes between Version 1 and Version 2 of StringBuilder
- Timestamp:
- 11/22/10 20:21:54 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StringBuilder
v1 v2 3 3 Cobra strings are immutable. To create something like a mutable string, use StringBuilder: 4 4 {{{ 5 #! python5 #!cobra 6 6 def visitMessage(url) as String 7 7 sb = StringBuilder() … … 13 13 If 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': 14 14 {{{ 15 #! python15 #!cobra 16 16 def visitMessage(url) as String 17 17 nl = CobraCore.newLine