Home
last modified time | relevance | path

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

12

/third_party/node/deps/npm/node_modules/wcwidth/test/
Dindex.js3 var wcwidth = require('../') variable
7 t.strictEqual(wcwidth('abc'), 3)
12 t.strictEqual(wcwidth('字的模块'), 8)
17 t.strictEqual(wcwidth('abc 字的模块'), 12)
22 t.strictEqual(wcwidth('abc\n字的模块\ndef'), 14)
27 t.strictEqual(wcwidth(''), 0)
28 t.strictEqual(wcwidth(3), 0)
29 t.strictEqual(wcwidth({}), 0)
30 t.strictEqual(wcwidth([]), 0)
31 t.strictEqual(wcwidth(), 0)
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/ctype/
Dwcwidth.c33 int result = wcwidth(0); in wcwidth_0100()
46 int result = wcwidth(INPUT_VALUE[0]); in wcwidth_0200()
59 int result = wcwidth(INPUT_VALUE[1]); in wcwidth_0300()
72 int result = wcwidth(INPUT_VALUE[2]); in wcwidth_0400()
85 int result = wcwidth(INPUT_VALUE[3]); in wcwidth_0500()
98 int result = wcwidth(INPUT_VALUE[4]); in wcwidth_0600()
111 int result = wcwidth(INPUT_VALUE[5]); in wcwidth_0700()
124 int result = wcwidth(INPUT_VALUE[6]); in wcwidth_0800()
137 int result = wcwidth(INPUT_VALUE[7]); in wcwidth_0900()
150 int result = wcwidth(INPUT_VALUE[8]); in wcwidth_1000()
[all …]
Dtest_src_functionalext_supplement_ctype.gni23 "wcwidth",
/third_party/node/deps/npm/node_modules/columnify/
Dutils.js3 var wcwidth = require('./width') variable
29 var length = max - wcwidth(str)
47 var length = max - wcwidth(str)
67 var length = max - wcwidth(str)
85 if (line && wcwidth(line.join(' ')) + wcwidth(word) < max) {
117 var truncationWidth = wcwidth(truncationChar)
127 if (wcwidth(word) > max) {
133 var w = wcwidth(word.charAt(i))
173 var w = wcwidth(str.charAt(i))
Dwidth.js2 var wcwidth = require('wcwidth') variable
5 return wcwidth(stripAnsi(str))
Dindex.js3 const wcwidth = require('./width') constant
140 return Math.max(min, Math.min(column.maxWidth, Math.max(column.minWidth, wcwidth(cur))))
162 item[columnName] = splitIntoLines(cell, column.width - wcwidth(column.truncateMarker))
177 return Math.max(min, Math.min(column.maxWidth, Math.max(column.minWidth, wcwidth(cur))))
Dcolumnify.js3 var wcwidth = require('./width'); variable
150 return Math.max(min, Math.min(column.maxWidth, Math.max(column.minWidth, wcwidth(cur))));
172 item[columnName] = splitIntoLines(cell, column.width - wcwidth(column.truncateMarker));
187 return Math.max(min, Math.min(column.maxWidth, Math.max(column.minWidth, wcwidth(cur))));
/third_party/node/deps/npm/node_modules/wcwidth/
Dindex.js11 module.exports = function wcwidth(str) { function
17 return function wcwidth(str) { function
47 if (typeof str !== 'string') return wcwidth(str, opts)
51 var n = wcwidth(str.charCodeAt(i), opts)
59 function wcwidth(ucs, opts) {
DLICENSE1 wcwidth.js: JavaScript Portng of Markus Kuhn's wcwidth() Implementation
6 This package is a JavaScript porting of `wcwidth()` implementation
7 [by Markus Kuhn](http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c).
/third_party/node/deps/npm/node_modules/wcwidth/docs/
Dindex.md1 ### Javascript porting of Markus Kuhn's wcwidth() implementation
5 This is an implementation of wcwidth() and wcswidth() (defined in
8 http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html
62 Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
/third_party/alsa-utils/alsamixer/
Dutils.c68 w = wcwidth(wc); in mbs_at_width()
77 w = wcwidth(wc); in mbs_at_width()
/third_party/musl/porting/liteos_a/user/src/ctype/
Dwcswidth.c8 for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++); in wcswidth()
/third_party/musl/src/ctype/
Dwcswidth.c8 for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++); in wcswidth()
Dwcwidth.c11 int wcwidth(wchar_t wc) in wcwidth() function
/third_party/toybox/toys/posix/
Dpaste.c88 if (!(dlen = wcwidth(wc))) continue;
Dcut.c62 if (0<(i = wcwidth(wc))) { in unicolumns()
Dfile.c425 if ((bytes = utf8towc(&wc, s+i, len-i))>0 && wcwidth(wc)>=0) { in do_regular_file()
/third_party/toybox/lib/
Dportability.h92 int wcwidth(wchar_t wc);
Dlinestack.c99 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str()
/third_party/musl/libc-test/src/api/
Dwchar.c95 {int(*p)(wchar_t) = wcwidth;} in f()
/third_party/musl/porting/liteos_a/kernel/include/
Dwchar.h178 int wcwidth (wchar_t);
/third_party/musl/porting/uniproton/kernel/include/
Dwchar.h178 int wcwidth (wchar_t);
/third_party/musl/include/
Dwchar.h179 int wcwidth (wchar_t);
/third_party/musl/porting/liteos_m/kernel/include/
Dwchar.h178 int wcwidth (wchar_t);
/third_party/elfio/tests/elf_examples/
Dls.readelf229 000000619220 004500000007 R_X86_64_JUMP_SLO 0000000000000000 wcwidth + 0
340 69: 0000000000000000 0 FUNC GLOBAL DEFAULT UND wcwidth@GLIBC_2.2.5 (3)

12