BloombergLP::bdld::Datum::copyString

copyString overloads

Synopses

Declared in <bdld_datum.h>

Return a datum owning a copy of the string described by value.

static
Datum
copyString(
    bslstl::StringRef const& value,
    AllocatorType const& allocator);
» more...

Return a datum owning a copy of the specified string.

static
Datum
copyString(
    char const* string,
    SizeType length,
    AllocatorType const& allocator);
» more...

Return Value

  • a datum owning a copy of the string described by value
  • a datum owning a copy of the specified string

Parameters

NameDescription
valuestring to copy
allocatormemory allocator to use
stringUTF-8 string to copy
lengthlength of string in bytes