Lines Matching refs:string

26689 exports.parseString = function (string, options) {
26691 rs.push(string);
28909 … if (raw.length % 2 === 1) return buffer.error('Decoding of string type: bmpstr length mismatch');
28921 return buffer.error('Decoding of string type: ' + 'numstr unsupported characters');
28933 return buffer.error('Decoding of string type: ' + 'printstr unsupported characters');
28940 return buffer.error('Decoding of string type: ' + tag + ' unsupported');
29216 … return this.reporter.error('Encoding of string type: numstr supports ' + 'only digits and space');
29222 …return this.reporter.error('Encoding of string type: printstr supports ' + 'only latin upper and l…
29231 return this.reporter.error('Encoding of string type: ' + tag + ' unsupported');
29236 if (typeof id === 'string') {
29237 if (!values) return this.reporter.error('string objid given, but no values map found');
29253 …return this.reporter.error('objid() should be either array or string, ' + 'got: ' + JSON.stringify…
29311 if (typeof num === 'string') {
38960 function fromString(string, encoding) {
38969 var length = byteLength(string, encoding) | 0;
38971 var actual = buf.write(string, encoding);
39152 function byteLength(string, encoding) {
39153 if (Buffer.isBuffer(string)) {
39154 return string.length;
39157 if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
39158 return string.byteLength;
39161 if (typeof string !== 'string') {
39162 …gument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + _typeof(string));
39165 var len = string.length;
39180 return utf8ToBytes(string).length;
39192 return base64ToBytes(string).length;
39196 return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8
39566 function hexWrite(buf, string, offset, length) {
39580 var strLen = string.length;
39587 var parsed = parseInt(string.substr(i * 2, 2), 16);
39595 function utf8Write(buf, string, offset, length) {
39596 return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
39599 function asciiWrite(buf, string, offset, length) {
39600 return blitBuffer(asciiToBytes(string), buf, offset, length);
39603 function latin1Write(buf, string, offset, length) {
39604 return asciiWrite(buf, string, offset, length);
39607 function base64Write(buf, string, offset, length) {
39608 return blitBuffer(base64ToBytes(string), buf, offset, length);
39611 function ucs2Write(buf, string, offset, length) {
39612 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
39615 Buffer.prototype.write = function write(string, offset, length, encoding) {
39642 if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
39652 return hexWrite(this, string, offset, length);
39656 return utf8Write(this, string, offset, length);
39659 return asciiWrite(this, string, offset, length);
39663 return latin1Write(this, string, offset, length);
39667 return base64Write(this, string, offset, length);
39673 return ucs2Write(this, string, offset, length);
40416 function utf8ToBytes(string, units) {
40419 var length = string.length;
40424 codePoint = string.charCodeAt(i); // is surrogate component
41516 var normalize = isForced.normalize = function (string) {
41517 return String(string).replace(replacement, '.').toLowerCase();
43368 var string = String(key);
43369 if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
43370 var symbol = $Symbol(string);
43371 StringToSymbolRegistry[string] = symbol;
43372 SymbolToStringRegistry[symbol] = string;
53619 exports.string = true;
54232 "string": function string(input) {
55715 function escapeRegExp(string) {
55716 string = toString(string);
55717 return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, '\\$&') : string;
57582 var stringToPath = memoize(function (string) {
57583 string = toString(string);
57586 if (reLeadingDot.test(string)) {
57590 string.replace(rePropName, function (match, number, quote, string) {
57591 result.push(quote ? string.replace(reEscapeChar, '$1') : number || match);