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);
Return a datum referring to the specified null‐terminated string.
static
Datum
createStringRef(
char const* string,
AllocatorType const& allocator);
Return a datum referring to the specified string without copying it.
static
Datum
createStringRef(
char const* string,
SizeType length,
AllocatorType const& allocator);
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
Name |
Description |
value |
string reference to wrap |
allocator |
memory allocator to use |
string |
UTF‐8 null‐terminated string to reference |
length |
length of |
Created with MrDocs