[#BloombergLP-bdld-Datum-copyString-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::copyString :relfileprefix: ../../../ :mrdocs: Return, by value, a datum having the copy of the specified `StringRef` `value`, using the specified `allocator` to supply memory (if needed). The behavior is undefined unless `value.length() <= UINT_MAX`. Note that the copied string is owned, and will be freed if `Datum::destroy` is called on the returned object. == Synopsis Declared in `<bdld_datum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] copyString( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& value, xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#