Creates a new reference counted string and copies the content of str
into it.
If you call this function multiple times with the same str, or with
the same contents of str, it will return a new reference, instead of
creating a new string.
Parameters
str: string
a NUL-terminated string
Returns string
the newly created reference counted string, or a new reference to an existing string
Creates a new reference counted string and copies the content of
strinto it.If you call this function multiple times with the same
str, or with the same contents ofstr, it will return a new reference, instead of creating a new string.