##// END OF EJS Templates
fixed bug in applying a lifetime while processing the json configuration...
fixed bug in applying a lifetime while processing the json configuration fixed template-compile

File last commit:

r115:691199f665e0 ioc ts support
r152:8bee6a6d5f46 v1.4.0-rc10 default
Show More
StringBuilder.ts
31 lines | 678 B | video/mp2t | TypeScriptLexer
/ src / main / ts / text / StringBuilder.ts
import { TextWriterBase } from "./TextWriterBase";
import { Converter } from "./Converter";
export class StringBuilder extends TextWriterBase {
private _data = new Array<string>();
constructor(converter = Converter.default) {
super(converter);
}
writeText(text: string) {
this._data.push(text);
}
toString() {
return this._data.join("");
}
clear() {
this._data.length = 0;
}
}
const sb = new StringBuilder();
export function format(format: string, ...args: any): string;
export function format() {
sb.clear();
sb.write.apply<StringBuilder, any, void>(sb, arguments);
return sb.toString();
}