v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 841 | skipping to change at line 841 | |||
* the contents of the string and the NULL terminator into the | * the contents of the string and the NULL terminator into the | |||
* buffer. | * buffer. | |||
* | * | |||
* Copies up to length characters into the output buffer. | * Copies up to length characters into the output buffer. | |||
* Only null-terminates if there is enough space in the buffer. | * Only null-terminates if there is enough space in the buffer. | |||
* | * | |||
* \param buffer The buffer into which the string will be copied. | * \param buffer The buffer into which the string will be copied. | |||
* \param start The starting position within the string at which | * \param start The starting position within the string at which | |||
* copying begins. | * copying begins. | |||
* \param length The number of bytes to copy from the string. | * \param length The number of bytes to copy from the string. | |||
* \return The number of characters copied to the buffer | * \param nchars_ref The number of characters written, can be NULL. | |||
* \return The number of bytes copied to the buffer | ||||
* excluding the NULL terminator. | * excluding the NULL terminator. | |||
*/ | */ | |||
int Write(uint16_t* buffer, int start = 0, int length = -1) const; // UT F-16 | int Write(uint16_t* buffer, int start = 0, int length = -1) const; // UT F-16 | |||
int WriteAscii(char* buffer, int start = 0, int length = -1) const; // A SCII | int WriteAscii(char* buffer, int start = 0, int length = -1) const; // A SCII | |||
int WriteUtf8(char* buffer, int length = -1) const; // UTF-8 | int WriteUtf8(char* buffer, | |||
int length = -1, | ||||
int* nchars_ref = NULL) const; // UTF-8 | ||||
/** | ||||
* Flatten internal memory. Operations on the string tend to run faster | ||||
* after flattening especially if the string is a concatenation of many | ||||
* others. | ||||
*/ | ||||
void Flatten(); | ||||
/** | /** | |||
* A zero length string. | * A zero length string. | |||
*/ | */ | |||
static v8::Local<v8::String> Empty(); | static v8::Local<v8::String> Empty(); | |||
/** | /** | |||
* Returns true if the string is external | * Returns true if the string is external | |||
*/ | */ | |||
bool IsExternal() const; | bool IsExternal() const; | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 12 lines changed or added | |||