Generate ids
This commit is contained in:
@@ -404,7 +404,7 @@ inline void noh_sv_trim_space(Noh_String_View *sv);
|
||||
Noh_String_View noh_sv_from_cstr(const char *cstr);
|
||||
|
||||
// Creates a string view from a string.
|
||||
Noh_String_View noh_sv_from_string(const Noh_String *string);
|
||||
Noh_String_View noh_sv_from_string(const Noh_String string);
|
||||
|
||||
// Compares two string views.
|
||||
// Returns:
|
||||
@@ -1009,10 +1009,10 @@ Noh_String_View noh_sv_from_cstr(const char *cstr) {
|
||||
return result;
|
||||
}
|
||||
|
||||
Noh_String_View noh_sv_from_string(const Noh_String *string) {
|
||||
Noh_String_View noh_sv_from_string(const Noh_String string) {
|
||||
Noh_String_View result = {0};
|
||||
result.elems = string->elems;
|
||||
result.count = string->count;
|
||||
result.elems = string.elems;
|
||||
result.count = string.count;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user