##// END OF EJS Templates
added provided and configure methods to the fluent container configuration, added applyConfig method to the container
added provided and configure methods to the fluent container configuration, added applyConfig method to the container

File last commit:

r115:691199f665e0 ioc ts support
r142:be7edf08a115 v1.4.0-rc3 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();
}