Class StringBuff

Summary


 This class is a way around Icon's inefficiency in concatenating long
 strings.  It creates a list of strings which it then concatenates all at
 once in a loop which takes advantage of an Icon optimization.

Package:
util
File:
stringbuff.icn
Methods:
add, drop_last, get_buff, get_string

Fields:
buff

Source code.

Details
Constructor

StringBuff(buff)

Methods:

add(s)


 Add the string to the buffer list.


drop_last(s)


 Discard the last element of the buffer if it equals the given string.


get_buff()


 Get the buffer list of strings.


get_string(sep)


 Get the string catenation of the strings in the buffer.
 @param sep  A separator to add between the strings (default is the empty
 @           string.


Fields:
buff


This page produced by UniDoc on 2021/04/15 @ 23:59:54.