We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9294aff commit 5da02d1Copy full SHA for 5da02d1
src/api/encoding.cc
@@ -3,6 +3,8 @@
3
#include "util-inl.h"
4
#include "v8.h"
5
6
+using namespace std;
7
+
8
namespace node {
9
10
using v8::HandleScope;
@@ -16,8 +18,8 @@ enum encoding ParseEncoding(const char* encoding,
16
18
case 'u':
17
19
case 'U':
20
// Note: the two first conditions are needed for performance reasons
- // as "utf8"/"utf-8" is a common case
- // (same for "utf16le/utf-16le" and "ucs2/ucs-2").
21
+ // as "utf8"/"utf-8" is a common case.
22
+ // (same for other cases below)
23
24
// utf, utf16le
25
if (encoding[1] == 't' && encoding[2] == 'f') {
0 commit comments