3232#include < stdlib.h>
3333#include < string.h> // for strlen()
3434
35- #include " rapidassist/cppencoder .h"
35+ #include " rapidassist/code_cpp .h"
3636#include " rapidassist/strings.h"
3737#include " rapidassist/filesystem.h"
3838
@@ -63,13 +63,13 @@ namespace bin2cpp
6363 return false ;
6464
6565 // Uppercase function identifier
66- std::string functionIdentifier = ra::strings::capitalizeFirstCharacter (mFunctionIdentifier );
66+ std::string functionIdentifier = ra::strings::CapitalizeFirstCharacter (mFunctionIdentifier );
6767
6868 // Build header and cpp file path
6969 std::string headerPath = getHeaderFilePath (iCppFilePath);
7070 std::string cppPath = iCppFilePath;
71- std::string headerFilename = ra::filesystem::getFilename (headerPath.c_str ());
72- std::string cppFilename = ra::filesystem::getFilename (iCppFilePath);
71+ std::string headerFilename = ra::filesystem::GetFilename (headerPath.c_str ());
72+ std::string cppFilename = ra::filesystem::GetFilename (iCppFilePath);
7373
7474 // create cpp file
7575 FILE * cpp = fopen (cppPath.c_str (), " w" );
@@ -80,8 +80,8 @@ namespace bin2cpp
8080 }
8181
8282 // determine file properties
83- // uint32_t fileSize = ra::filesystem::getFileSize (input);
84- std::string filename = ra::filesystem::getFilename (mInputFile .c_str ());
83+ // uint32_t fileSize = ra::filesystem::GetFileSize (input);
84+ std::string filename = ra::filesystem::GetFilename (mInputFile .c_str ());
8585
8686 // Build class name
8787 std::string className;
@@ -123,7 +123,7 @@ namespace bin2cpp
123123 fprintf (cpp, " }\n " );
124124 fprintf (cpp, " virtual ~%s() { unloadResource(); }\n " , className.c_str ());
125125 fprintf (cpp, " virtual size_t getSize() const { return mBufferSize; }\n " );
126- fprintf (cpp, " virtual const char * getFilename() const { return \" %s\" ; }\n " , ra::filesystem::getFilename (mInputFile .c_str ()).c_str ());
126+ fprintf (cpp, " virtual const char * getFilename() const { return \" %s\" ; }\n " , ra::filesystem::GetFilename (mInputFile .c_str ()).c_str ());
127127 fprintf (cpp, " virtual const char * getBuffer() const { return mBuffer; }\n " );
128128 fprintf (cpp, " void loadResource()\n " );
129129 fprintf (cpp, " {\n " );
@@ -188,7 +188,7 @@ namespace bin2cpp
188188 {
189189 // Build header file path
190190 std::string resourcePath = iCppFilePath;
191- ra::strings::replace (resourcePath, " .cpp" , " .rc" );
191+ ra::strings::Replace (resourcePath, " .cpp" , " .rc" );
192192 return resourcePath;
193193 }
194194
@@ -204,7 +204,7 @@ namespace bin2cpp
204204 return false ;
205205 }
206206
207- std::string filename = ra::filesystem::getFilename (mInputFile .c_str ());
207+ std::string filename = ra::filesystem::GetFilename (mInputFile .c_str ());
208208
209209 // write res file heading
210210 fprintf (res, " %s" , getHeaderTemplate ().c_str ());
@@ -228,7 +228,7 @@ namespace bin2cpp
228228
229229 std::string checksumString;
230230 crc32String (&checksum, checksumString);
231- checksumString = ra::strings::uppercase (checksumString);
231+ checksumString = ra::strings::Uppercase (checksumString);
232232
233233 // build the final identifier
234234 std::string id;
0 commit comments