Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Bug in CppBuilder module - SourceToObjName()
Re: Bug in CppBuilder module - SourceToObjName() [message #58079 is a reply to message #58078] |
Tue, 08 February 2022 16:45  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
I'd suggest to replace it with this one...
String SourceToObjName(const String& package, const String& srcfile_)
{
String srcfile = srcfile_;
srcfile.TrimEnd(".cpp");
srcfile.TrimStart(GetFileFolder(PackagePath(package)));
String r;
for(const char *s = ~srcfile; *s; s++)
r.Cat(findarg(*s, '/', '\\') >= 0 ? '_' : *s);
return r;
}
|
|
|
Goto Forum:
Current Time: Fri Jun 13 08:40:02 CEST 2025
Total time taken to generate the page: 0.08251 seconds
|