File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ Napi::String::New(napi_env env, const std::string& value);
56
56
Napi::String::New(napi_env env, const std::u16::string& value);
57
57
Napi::String::New(napi_env env, const char* value);
58
58
Napi::String::New(napi_env env, const char16_t* value);
59
+ Napi::String::New(napi_env env, const char* value, size_t length);
60
+ Napi::String::New(napi_env env, const char16_t* value, size_t length);
59
61
```
60
62
61
63
- `[in] env`: The `napi_env` environment in which to construct the `Napi::Value` object.
@@ -64,6 +66,7 @@ Napi::String::New(napi_env env, const char16_t* value);
64
66
- `std::u16string&` - represents a UTF16-LE string.
65
67
- `const char*` - represents a UTF8 string.
66
68
- `const char16_t*` - represents a UTF16-LE string.
69
+ - `[in] length`: The length of the string (not necessarily null-terminated) in code units.
67
70
68
71
Returns a new `Napi::String` that represents the passed in C++ string.
69
72
You can’t perform that action at this time.
0 commit comments