| Index: vm/object.h
|
| ===================================================================
|
| --- vm/object.h (revision 15670)
|
| +++ vm/object.h (working copy)
|
| @@ -3819,10 +3819,16 @@
|
|
|
| // Creates a new String object from a C string that is assumed to contain
|
| // UTF-8 encoded characters and '\0' is considered a termination character.
|
| + // TODO(asiva) - Maybe rename this to FromCString(....).
|
| static RawString* New(const char* cstr, Heap::Space space = Heap::kNew);
|
|
|
| // Creates a new String object from an array of UTF-8 encoded characters.
|
| - static RawString* New(const uint8_t* utf8_array,
|
| + static RawString* FromUTF8(const uint8_t* utf8_array,
|
| + intptr_t array_len,
|
| + Heap::Space space = Heap::kNew);
|
| +
|
| + // Creates a new String object from an array of Latin-1 encoded characters.
|
| + static RawString* New(const uint8_t* latin1_array,
|
| intptr_t array_len,
|
| Heap::Space space = Heap::kNew);
|
|
|
|
|