dojox/string/Builder (version 1.10)

Summary

A fast buffer for creating large strings.

Usage

Builder(str);
Parameter Type Description
str String
Optional

See the dojox/string/Builder reference documentation for more information.

Property Summary

Method Summary

  • append(s) Append all arguments to the end of the buffer
  • appendArray(strings) Append an array of items to the internal buffer.
  • clear() Remove all characters from the buffer.
  • concat(s) Alias for append.
  • insert(index,str) Insert string str starting at index.
  • remove(start,len) Remove len characters starting at index start.
  • replace(oldStr,newStr) Replace instances of one string with another in the buffer.
  • toString() Return the string representation of the internal buffer.

Properties

length
Defined by: dojox/string/Builder

Methods

append(s)

Append all arguments to the end of the buffer

Parameter Type Description
s String...
appendArray(strings)

Append an array of items to the internal buffer.

Parameter Type Description
strings Array
clear()

Remove all characters from the buffer.

concat(s)

Alias for append.

Parameter Type Description
s String...
insert(index,str)

Insert string str starting at index.

Parameter Type Description
index Number
str String
remove(start,len)

Remove len characters starting at index start. If len is not provided, the end of the string is assumed.

Parameter Type Description
start Number
len Number
Optional
replace(oldStr,newStr)

Replace instances of one string with another in the buffer.

Parameter Type Description
oldStr String
newStr String
toString()

Return the string representation of the internal buffer.

Error in the documentation? Can’t find what you are looking for? Let us know!