node_modules/mocha/mocha.js 1 location
|
@@ 12761-12761 (lines=1) @@
|
12758 |
|
// Checks at most 3 bytes at the end of a Buffer in order to detect an |
12759 |
|
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4) |
12760 |
|
// needed to complete the UTF-8 character (if applicable) are returned. |
12761 |
|
function utf8CheckIncomplete(self, buf, i) { |
12762 |
|
var j = buf.length - 1; |
12763 |
|
if (j < i) return 0; |
12764 |
|
var nb = utf8CheckByte(buf[j]); |
node_modules/string_decoder/lib/string_decoder.js 1 location
|
@@ 124-124 (lines=1) @@
|
121 |
|
// Checks at most 3 bytes at the end of a Buffer in order to detect an |
122 |
|
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4) |
123 |
|
// needed to complete the UTF-8 character (if applicable) are returned. |
124 |
|
function utf8CheckIncomplete(self, buf, i) { |
125 |
|
var j = buf.length - 1; |
126 |
|
if (j < i) return 0; |
127 |
|
var nb = utf8CheckByte(buf[j]); |