ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 Current Path : /var/www/talentgenesis_admin_backend/node_modules/exceljs/lib/utils/ |
| Current File : /var/www/talentgenesis_admin_backend/node_modules/exceljs/lib/utils/string-builder.js |
// StringBuilder - a way to keep string memory operations to a minimum
// while building the strings for the xml files
class StringBuilder {
constructor() {
this.reset();
}
get length() {
return this._buf.length;
}
toString() {
return this._buf.join('');
}
reset(position) {
if (position) {
while (this._buf.length > position) {
this._buf.pop();
}
} else {
this._buf = [];
}
}
addText(text) {
this._buf.push(text);
}
addStringBuf(inBuf) {
this._buf.push(inBuf.toString());
}
}
module.exports = StringBuilder;