Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
mdelfede is currently offline  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;
}
 
Read Message
Read Message
Previous Topic: TheIDE support for Visual Studio Build Tools 2022?
Next Topic: Installation problem
Goto Forum:
  


Current Time: Fri Jun 13 08:40:02 CEST 2025

Total time taken to generate the page: 0.08251 seconds