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/slang/slang.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index b5a8585ff..ac8e0269d 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -2726,7 +2726,7 @@ SlangResult EndToEndCompileRequest::executeActions() { SlangResult res = executeActionsInner(); - m_diagnosticOutput = getSink()->outputBuffer.ProduceString(); + m_diagnosticOutput = getSink()->outputBuffer.produceString(); return res; } @@ -3117,10 +3117,10 @@ RefPtr Linkage::findOrImportModule( if (c == '_') c = '-'; - sb.Append(c); + sb.append(c); } - sb.Append(".slang"); - fileName = sb.ProduceString(); + sb.append(".slang"); + fileName = sb.produceString(); } else { @@ -5108,7 +5108,7 @@ SlangResult EndToEndCompileRequest::EndToEndCompileRequest::compile() // and not some other component in their system. getSink()->diagnose(SourceLoc(), Diagnostics::compilationAborted); } - m_diagnosticOutput = getSink()->outputBuffer.ProduceString(); + m_diagnosticOutput = getSink()->outputBuffer.produceString(); #else // When debugging, we probably don't want to filter out any errors, since -- cgit v1.2.3