From 5b6770f3d297c0639bdbe8b1b029616c16669165 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 21 May 2018 20:47:52 +0100 Subject: Parse directories to be packages --- src/string.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/string.cpp') diff --git a/src/string.cpp b/src/string.cpp index 470530298..16ba3c951 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -82,6 +82,10 @@ gb_inline String make_string_c(char *text) { return make_string(cast(u8 *)cast(void *)text, gb_strlen(text)); } +gb_inline String16 make_string16_c(wchar_t *text) { + return make_string16(text, string16_len(text)); +} + String substring(String const &s, isize lo, isize hi) { isize max = s.len; GB_ASSERT_MSG(lo <= hi && hi <= max, "%td..%td..%td", lo, hi, max); -- cgit v1.2.3