BloombergLP::bdld::Datum::createStringRef

createStringRef overloads

Synopses

Declared in <bdld_datum.h>

Return a datum referring to the string described by value.

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

Return a datum referring to the specified null-terminated string.

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

Return a datum referring to the specified string without copying it.

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

Return Value

  • a datum referring to the string described by value
  • a datum referring to the specified null-terminated string
  • a datum referring to the specified string without copying it

Parameters

NameDescription
valuestring reference to wrap
allocatormemory allocator to use
stringUTF-8 null-terminated string to reference
lengthlength of string in bytes