Class StringBuff

Package :
util

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.

Source

Class summary
Methods defined in this class
add(s) drop_last(s) get_buff() get_string(sep) initially()
Variables defined in this class
buff

Method detail

add(s)

Add the string to the buffer list.
Source

drop_last(s)

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

get_buff()

Get the buffer list of strings.
Source

get_string(sep)

Get the string catenation of the strings in the buffer.
Parameters :
sep - A separator to add between the strings (default is the empty string.
Source

initially()


Variable detail

buff