| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index c422e172d2dd15dc51854faad7798bb216f2b623..5e2e879ec09c7af4141c9e38afcdf836ed3264a0 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -1262,6 +1262,13 @@ class String : public Primitive {
|
| */
|
| V8EXPORT static Local<String> New(const char* data, int length = -1);
|
|
|
| + /**
|
| + * Allocates a new string from ASCII data.
|
| + * Any non-ASCII characters will have the high bit stripped.
|
| + * The second parameter 'length' gives the buffer length.
|
| + */
|
| + V8EXPORT static Local<String> NewFromAscii(const char* data, int length = -1);
|
| +
|
| /** Allocates a new string from 16-bit character codes.*/
|
| V8EXPORT static Local<String> New(const uint16_t* data, int length = -1);
|
|
|
|
|