MCPcopy Index your code
hub / github.com/deployd/deployd / stringSize

Function stringSize

test-app/public/sinon.js:11935–11939  ·  view source on GitHub ↗

* Gets the number of symbols in `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the string size.

(string)

Source from the content-addressed store, hash-verified

11933 * @returns {number} Returns the string size.
11934 */
11935 function stringSize(string) {
11936 return hasUnicode(string)
11937 ? unicodeSize(string)
11938 : asciiSize(string);
11939 }
11940
11941 /**
11942 * Converts `string` to an array.

Callers 6

createPaddingFunction · 0.85
sizeFunction · 0.85
padFunction · 0.85
padEndFunction · 0.85
padStartFunction · 0.85
truncateFunction · 0.85

Calls 2

hasUnicodeFunction · 0.85
unicodeSizeFunction · 0.85

Tested by

no test coverage detected