From e213e394d5008cb7bf08bbf875acd494259f5847 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 18 Jun 2019 18:22:43 -0400 Subject: * Added Path::combineBuilder, so as two sub paths can be combined into a StringBuilder (#988) * Renamed and improved comments on SharedLibrary --- source/core/slang-io.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/core/slang-io.h') diff --git a/source/core/slang-io.h b/source/core/slang-io.h index 4fa921662..91cfaf290 100644 --- a/source/core/slang-io.h +++ b/source/core/slang-io.h @@ -29,8 +29,13 @@ namespace Slang static String getFileNameWithoutExt(const String& path); static String getFileExt(const String& path); static String getParentDirectory(const String& path); + static String combine(const String& path1, const String& path2); static String combine(const String& path1, const String& path2, const String& path3); + + /// Combine path sections and store the result in outBuilder + static void combineBuilder(const UnownedStringSlice& path1, const UnownedStringSlice& path2, StringBuilder& outBuilder); + static bool createDirectory(const String& path); /// Accept either style of delimiter -- cgit v1.2.3