xo-object2: + DString.from_str()
This commit is contained in:
parent
29a2f9b7c9
commit
eeb36655aa
2 changed files with 15 additions and 0 deletions
|
|
@ -78,6 +78,12 @@ namespace xo {
|
|||
static DString * from_view(obj<AAllocator> mm,
|
||||
std::string_view sv);
|
||||
|
||||
/** create string containing a copy @p str.
|
||||
* Use memory from allocator @p mm.
|
||||
**/
|
||||
static DString * from_str(obj<AAllocator> mm,
|
||||
const std::string & str);
|
||||
|
||||
/** create string containing a copy of @p sv.
|
||||
* Use memory from allocator @p mm via sub_alloc.
|
||||
* (load-bearing for StringTable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue