Home
last modified time | relevance | path

Searched refs:stringWidth (Results 1 – 25 of 25) sorted by relevance

/third_party/node/deps/npm/node_modules/@isaacs/cliui/build/lib/
Dindex.js54 if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
55 … leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
102 if (wrapWidth > mixin.stringWidth(col)) {
103 ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
109 if (mixin.stringWidth(ts) < wrapWidth) {
113 ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
149 const targetTextWidth = mixin.stringWidth(target.trimEnd());
219 return col.width || mixin.stringWidth(col.text);
277 const strWidth = mixin.stringWidth(str);
285 const strWidth = mixin.stringWidth(str);
/third_party/node/deps/npm/node_modules/gauge/lib/
Dwide-truncate.js2 var stringWidth = require('string-width') variable
8 if (stringWidth(str) === 0) {
14 if (stringWidth(str) <= target) {
27 while (stringWidth(truncated) > target) {
Dprogress-bar.js5 var stringWidth = require('string-width') variable
38 } while (n && stringWidth(result) < width)
Dtemplate-item.js2 var stringWidth = require('string-width') variable
62 length = stringWidth(this.value)
/third_party/node/deps/npm/node_modules/node-gyp/node_modules/gauge/lib/
Dwide-truncate.js2 var stringWidth = require('string-width') variable
8 if (stringWidth(str) === 0) {
14 if (stringWidth(str) <= target) {
27 while (stringWidth(truncated) > target) {
Dprogress-bar.js5 var stringWidth = require('string-width') variable
38 } while (n && stringWidth(result) < width)
Dtemplate-item.js2 var stringWidth = require('string-width') variable
62 length = stringWidth(this.value)
/third_party/node/deps/npm/node_modules/wide-align/
Dalign.js2 var stringWidth = require('string-width') variable
29 var strWidth = stringWidth(trimmed)
42 var strWidth = stringWidth(trimmed)
56 var strWidth = stringWidth(trimmed)
/third_party/node/deps/npm/node_modules/@isaacs/cliui/build/
Dindex.cjs55 if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
56 … leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
103 if (wrapWidth > mixin.stringWidth(col)) {
104 ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
110 if (mixin.stringWidth(ts) < wrapWidth) {
114 ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
150 const targetTextWidth = mixin.stringWidth(target.trimEnd());
220 return col.width || mixin.stringWidth(col.text);
278 const strWidth = mixin.stringWidth(str);
286 const strWidth = mixin.stringWidth(str);
[all …]
/third_party/node/deps/npm/node_modules/wrap-ansi/
Dindex.js1 import stringWidth from 'string-width';
22 const wordLengths = string => string.split(' ').map(character => stringWidth(character));
31 let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
34 const characterLength = stringWidth(character);
82 if (stringWidth(words[last - 1]) > 0) {
118 let rowLength = stringWidth(rows[rows.length - 1]);
/third_party/node/deps/npm/node_modules/wrap-ansi-cjs/
Dindex.js2 const stringWidth = require('string-width'); constant
24 const wordLengths = string => string.split(' ').map(character => stringWidth(character));
33 let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
36 const characterLength = stringWidth(character);
84 if (stringWidth(words[last - 1]) > 0) {
120 let rowLength = stringWidth(rows[rows.length - 1]);
/third_party/node/deps/npm/node_modules/string-width/
Dindex.js6 const stringWidth = string => { function
45 module.exports = stringWidth;
47 module.exports.default = stringWidth;
/third_party/node/deps/npm/node_modules/string-width-cjs/
Dindex.js6 const stringWidth = string => { function
45 module.exports = stringWidth;
47 module.exports.default = stringWidth;
/third_party/node/deps/npm/node_modules/cli-columns/
Dindex.js3 const stringWidth = require('string-width'); constant
39 const valueWidth = stringWidth(value);
67 Math.max.apply(null, cells.map(stringWidth)) + options.padding;
/third_party/node/deps/npm/node_modules/@isaacs/cliui/
Dindex.mjs4 import stringWidth from 'string-width'
10 stringWidth, property
/third_party/node/deps/npm/node_modules/cli-table3/src/
Dutils.js1 const stringWidth = require('string-width'); constant
12 return stringWidth(s) > memo ? stringWidth(s) : memo;
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/
DCalendarPanel.java224 h -= fm.stringWidth(dayName) / 2; in paint()
318 x = cellx + (int)cellWidth - XINSET - fm.stringWidth(dayNum); in paint()
337 x = cellx + (int)cellWidth - XINSET - fm.stringWidth(month); in paint()
DCalendarFrame.java384 g.drawString(text, fm.stringWidth("\u00a0"), in paint()
396 return new Dimension( fm.stringWidth(text) + 2*fm.stringWidth("\u00a0"), in getMinimumSize()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
DDumbTextComponent.java606 width = fm.stringWidth( in offset2Point()
657 int highWidth = fm.stringWidth(contents.substring(lineStarts[line],highGuess)); in point2Offset()
665 int width = fm.stringWidth(contents.substring(lineStarts[line],guess)); in point2Offset()
680 lowWidth = fm.stringWidth(contents.substring(lineStarts[line],lowBound)); in point2Offset()
682 highWidth = fm.stringWidth(contents.substring(lineStarts[line],highBound)); in point2Offset()
775 return fMtr.stringWidth(s.substring(0,i+1)); in visibleWidth()
/third_party/node/deps/npm/node_modules/@isaacs/cliui/node_modules/string-width/
Dindex.js5 export default function stringWidth(string, options = {}) { function
/third_party/node/deps/npm/node_modules/wrap-ansi/node_modules/string-width/
Dindex.js5 export default function stringWidth(string, options = {}) { function
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/
DHolidayCalendarDemo.java612 h -= fm.stringWidth(dayName) / 2; in paint()
675 x = x - INSET - fm.stringWidth(dayNum); in paint()
DHolidayBorderPanel.java453 int strwidth = fm.stringWidth(text); in paint()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfDemo.java521 while (tempLineEnd != BreakIterator.DONE && fm.stringWidth(txt.substring( in paint()
/third_party/node/tools/lint-md/
Dlint-md.mjs21733 function stringWidth(string, options) { function
22238 const size = stringWidth(row[cellIndex]);
22257 line += cell + ' '.repeat(max - stringWidth(cell));