##// 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
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82 import { TextWriterBase } from "./TextWriterBase";
import { Converter } from "./Converter";
export class StringBuilder extends TextWriterBase {
private _data = new Array<string>();
cin
working on text writer
r79
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82 constructor(converter = Converter.default) {
super(converter);
}
cin
working on text writer
r79
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82 writeText(text: string) {
this._data.push(text);
cin
working on text writer
r79 }
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82 toString() {
return this._data.join("");
cin
working on text writer
r79 }
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82 clear() {
this._data.length = 0;
cin
working on text writer
r79 }
}
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82
const sb = new StringBuilder();
export function format(format: string, ...args: any): string;
export function format() {
sb.clear();
cin
corrected code to support ts strict mode...
r115 sb.write.apply<StringBuilder, any, void>(sb, arguments);
cin
StringBuilder, TextWriter, ConsoleWriter tests
r82 return sb.toString();
}