37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
return r;
}
static inline gd_stringName
gdu_intern (const char* str) {
return gdu_intern_sz(str, 0);
}
static inline gd_string
gdu_str_sz (const char* str, const size_t sz) {
gd_string r = {};
if (sz == 0) _t(string).newWithUtf8Chars(&r, str);
else _t(string).newWithUtf8CharsAndLen(&r, str, sz);
return r;
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
return r;
}
static inline gd_stringName
gdu_intern (const char* str) {
return gdu_intern_sz(str, 0);
}
static inline gd_stringName
gdu_sym_null(void) {
gd_stringName n;
_t(stringName).empty(&n, nullptr);
return n;
}
static inline gd_string
gdu_str_null(void) {
gd_string n;
_t(string).empty(&n, nullptr);
return n;
}
static inline gd_string
gdu_str_sz (const char* str, const size_t sz) {
gd_string r = {};
if (sz == 0) _t(string).newWithUtf8Chars(&r, str);
else _t(string).newWithUtf8CharsAndLen(&r, str, sz);
return r;
|