[#BloombergLP-bdld-Datum-copyString-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::copyString :relfileprefix: ../../../ :mrdocs: `copyString` overloads == Synopses Declared in `<bdld_datum.h>` Return a datum owning a copy of the string described by `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] xref:BloombergLP/bdld/Datum/copyString-00.adoc[copyString]( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& value, xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator); ---- [.small]#xref:BloombergLP/bdld/Datum/copyString-00.adoc[_» more..._]# Return a datum owning a copy of the specified string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] xref:BloombergLP/bdld/Datum/copyString-0c.adoc[copyString]( char const* string, xref:BloombergLP/bdld/Datum/SizeType.adoc[SizeType] length, xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator); ---- [.small]#xref:BloombergLP/bdld/Datum/copyString-0c.adoc[_» more..._]# == Return Value * a datum owning a copy of the string described by `value` * a datum owning a copy of the specified string == Parameters [cols="1,4"] |=== | Name| Description | *value* | string to copy | *allocator* | memory allocator to use | *string* | UTF‐8 string to copy | *length* | length of `string` in bytes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#