Updated Source Generation Tools

This commit is contained in:
n00b
2024-09-15 10:55:15 -04:00
parent 10551c83f3
commit f013e6ba71
21 changed files with 22643 additions and 2972 deletions

File diff suppressed because it is too large Load Diff

2521
rcbasic_build/rc_builtin2.h Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -69,4 +69,19 @@ bool is_file_exist(const char *fileName)
return infile.good();
}
std::string rc_replace(std::string src, std::string tgt, std::string rpc)
{
if(tgt.length()==0)
return src;
size_t found_inc = rpc.length() > 0 ? rpc.length() : 1;
size_t found = 0;
found = src.find(tgt);
while( found != string::npos && found < src.length())
{
src = src.substr(0,found) + rpc + src.substr(found + tgt.length());
found = src.find(tgt,found+found_inc);
}
return src;
}
#endif // RC_UTILITY_H_INCLUDED

Binary file not shown.