awStringIndent
void awStringIndent(BrokerString st);
Adds a new line to the string st and then adds a number indentation spaces, based on the current indentation level.
This function may be used with awStringDecIndent and awStringIncIndent as follows:
awStringAppend(st,"Hello");
awStringIncIndent(st);
awStringIndent(st);
awStringAppend(st,"First Indent");
awStringIncIndent(st);
awStringIndent(st);
awStringAppend(st,"Second Indent");
awStringIndent(st);
awStringAppend(st,"Still Here");
awStringDecIndent(st);
awStringDecIndent(st);
awStringIndent(st);
awStringAppend(st,"Back at First Level");
The following output would result from this code:
Hello
First Indent
Second Indent
Still Here
Back at First Level
See also: