Quark.internString

Returns a canonical representation for @string. Interned strings can be compared for equality by comparing the pointers, instead of using strcmp().

struct Quark
static
string
internString
(
string str
)

Parameters

str string

a string

Return Value

Type: string

a canonical representation for the string

Meta

Since

2.10