Beispiel #1
0
status_t String8::setTo(const char32_t* other, size_t len)
{
    SharedBuffer::bufferFromData(mString)->release();
    mString = allocFromUTF32(other, len);
    if (mString) return NO_ERROR;

    mString = getEmptyString();
    return NO_MEMORY;
}
Beispiel #2
0
String8::String8(const char32_t* o, size_t len)
    : mString(allocFromUTF32(o, len))
{
}
Beispiel #3
0
String8::String8(const char32_t* o)
    : mString(allocFromUTF32(o, strlen32(o)))
{
}