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 --- tools/slang-cpp-extractor/cpp-extractor-main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/slang-cpp-extractor/cpp-extractor-main.cpp') diff --git a/tools/slang-cpp-extractor/cpp-extractor-main.cpp b/tools/slang-cpp-extractor/cpp-extractor-main.cpp index c8a4d80f5..2bc0596e1 100644 --- a/tools/slang-cpp-extractor/cpp-extractor-main.cpp +++ b/tools/slang-cpp-extractor/cpp-extractor-main.cpp @@ -247,7 +247,7 @@ SlangResult App::execute(const Options& options) StringBuilder buf; // Let's guess a 'fileMark' (it becomes part of the filename) based on the macro name. Use lower kabab. NameConventionUtil::join(slices.getBuffer(), slices.getCount(), NameConvention::LowerKabab, buf); - typeSet->m_fileMark = buf.ProduceString(); + typeSet->m_fileMark = buf.produceString(); } if (typeSet->m_typeName.getLength() == 0) @@ -255,7 +255,7 @@ SlangResult App::execute(const Options& options) // Let's guess a typename if not set -> go with upper camel StringBuilder buf; NameConventionUtil::join(slices.getBuffer(), slices.getCount(), NameConvention::UpperCamel, buf); - typeSet->m_typeName = buf.ProduceString(); + typeSet->m_typeName = buf.produceString(); } } } -- cgit v1.2.3