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-platform.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'source/core/slang-platform.cpp') diff --git a/source/core/slang-platform.cpp b/source/core/slang-platform.cpp index f28a25f7f..e5af0ba7e 100644 --- a/source/core/slang-platform.cpp +++ b/source/core/slang-platform.cpp @@ -49,7 +49,7 @@ namespace Slang { StringBuilder builder; calcPlatformPath(path, builder); - return builder.ToString(); + return builder.toString(); } #ifdef _WIN32 @@ -92,7 +92,7 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY); { builderOut << " "; // Convert to string - builderOut.Append(String::fromWString(buffer)); + builderOut.append(String::fromWString(buffer)); LocalFree(buffer); return SLANG_OK; } @@ -152,8 +152,8 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY); /* static */void SharedLibrary::appendPlatformFileName(const UnownedStringSlice& name, StringBuilder& dst) { - dst.Append(name); - dst.Append(".dll"); + dst.append(name); + dst.append(".dll"); } #else // _WIN32 @@ -221,21 +221,21 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY); /* static */void SharedLibrary::appendPlatformFileName(const UnownedStringSlice& name, StringBuilder& dst) { #if __CYGWIN__ - dst.Append(name); - dst.Append(".dll"); + dst.append(name); + dst.append(".dll"); #elif SLANG_APPLE_FAMILY - dst.Append("lib"); - dst.Append(name); - dst.Append(".dylib"); + dst.append("lib"); + dst.append(name); + dst.append(".dylib"); #elif SLANG_LINUX_FAMILY if (!name.startsWith("lib")) - dst.Append("lib"); - dst.Append(name); + dst.append("lib"); + dst.append(name); if (name.indexOf(UnownedStringSlice(".so.")) == -1) - dst.Append(".so"); + dst.append(".so"); #else // Just guess we can do with the name on it's own - dst.Append(name); + dst.append(name); #endif } -- cgit v1.2.3