aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorIan Lilley <ianlilleyt@gmail.com>2022-08-07 17:52:29 -0400
committerIan Lilley <ianlilleyt@gmail.com>2022-08-07 17:52:29 -0400
commitc1c8ceafc243389d8eb94feca99de1239da32408 (patch)
treea3236600cbc3298b891044bb9ec5538d57c665ac /src/string.cpp
parent7b539e3025907ab5b40762f90ca4f613cee7eab5 (diff)
find windows sdk bin path for rc.exe
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 44eccd2d2..bc55e370c 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -324,6 +324,16 @@ String concatenate3_strings(gbAllocator a, String const &x, String const &y, Str
data[len] = 0;
return make_string(data, len);
}
+String concatenate4_strings(gbAllocator a, String const &x, String const &y, String const &z, String const &w) {
+ isize len = x.len+y.len+z.len+w.len;
+ u8 *data = gb_alloc_array(a, u8, len+1);
+ gb_memmove(data, x.text, x.len);
+ gb_memmove(data+x.len, y.text, y.len);
+ gb_memmove(data+x.len+y.len, z.text, z.len);
+ gb_memmove(data+x.len+y.len+z.len, w.text, w.len);
+ data[len] = 0;
+ return make_string(data, len);
+}
String string_join_and_quote(gbAllocator a, Array<String> strings) {
if (!strings.count) {