From 5abee6a0a30c7c965138ec7286b7f1b21b201731 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 25 Apr 2023 12:25:52 -0400 Subject: StringBuilder to lowerCamel (#2840) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP lowerCamel Dictionary. * WIP more lowerCamel fixes for Dictionary. * Add/Remove/Clear * GetValue/Contains * Fix tabs in dictionary. Count -> getCount * Fix fields with caps. * Key -> key Value -> value Use m_ for members where appropriate. Use lowerCamel in linked list. * Some small fixes/improvements to Dictionary. * Kick CI. * Small tidy on String. * Append -> append * ToString -> toString ProduceString -> produceString * Small fixes. * StringToXXX -> stringToXXX * Fix typo introduced by Append -> append. * Made intToAscii do reversal at the end. --------- Co-authored-by: Yong He --- source/core/slang-command-line.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/core/slang-command-line.cpp') diff --git a/source/core/slang-command-line.cpp b/source/core/slang-command-line.cpp index 59e6a6265..475270d69 100644 --- a/source/core/slang-command-line.cpp +++ b/source/core/slang-command-line.cpp @@ -43,7 +43,7 @@ void ExecutableLocation::set(const String& nameOrPath) StringBuilder builder; builder << nameOrPath; builder << suffix; - setPath(builder.ProduceString()); + setPath(builder.produceString()); } } else @@ -86,7 +86,7 @@ void CommandLine::addPrefixPathArg(const char* prefix, const String& path, const // Work out the path with the postfix builder << pathPostfix; } - addArg(builder.ProduceString()); + addArg(builder.produceString()); } void CommandLine::append(StringBuilder& out) const @@ -128,14 +128,14 @@ String CommandLine::toString() const { StringBuilder buf; append(buf); - return buf.ProduceString(); + return buf.produceString(); } String CommandLine::toStringArgs() const { StringBuilder buf; appendArgs(buf); - return buf.ProduceString(); + return buf.produceString(); } } // namespace Slang -- cgit v1.2.3