Quark.internStaticString

Returns a canonical representation for @string. Interned strings can be compared for equality by comparing the pointers, instead of using strcmp(). g_intern_static_string() does not copy the string, therefore @string must not be freed or modified.

struct Quark
static
string
internStaticString
(
string str
)

Parameters

str string

a static string

Return: a canonical representation for the string

Meta

Since

2.10