MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / FormatSpecifier

Function FormatSpecifier

client_dist/vendor.js:6366–6379  ·  view source on GitHub ↗
(specifier)

Source from the content-addressed store, hash-verified

6364formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
6365
6366function FormatSpecifier(specifier) {
6367 if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
6368 var match;
6369 this.fill = match[1] || " ";
6370 this.align = match[2] || ">";
6371 this.sign = match[3] || "-";
6372 this.symbol = match[4] || "";
6373 this.zero = !!match[5];
6374 this.width = match[6] && +match[6];
6375 this.comma = !!match[7];
6376 this.precision = match[8] && +match[8].slice(1);
6377 this.trim = !!match[9];
6378 this.type = match[10] || "";
6379}
6380
6381FormatSpecifier.prototype.toString = function() {
6382 return this.fill

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected