../../Developer.FoundationDotJS.org/wwwroot/Foundation.js
Foundation
Object
All Implemented Interfaces:
Foundation.StringBuilder
implementsFoundation.Class
A class to build strings efficiently and quickly. See the Foundation.StringBuilder home page for more information.
Example:
var builder=new Foundation.StringBuilder(); builder.append("hello"); builder.append(" "); builder.append("world"); alert(builder.toString());
Constructor Summary |
|
Method Summary | |
|
Appends data to the string builder.
|
|
Clears all data from the string builder.
|
|
|
|
Concatenates all values added by the
append method. |
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
Foundation.StringBuilder(/*Number
*/ initialSize)
initialSize -(Optional) Initial size of internal array (defaults to 1000). Should be just over the number of times the
append
method will be called (but do not sweat it, it is auto adjusting).Method Detail |
[this]
append(/*String
*/ value)
Appends data to the string builder.
Parameters:value -Value to be appended to the output string.
[this]
clear()
Clears all data from the string builder.
Returns:
dispose()
dispose
in class Class
String
toString()