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++ Library support » FileSel&FileList, Path » A little improvement to AppendFileName
A little improvement to AppendFileName [message #23320] Fri, 09 October 2009 08:47 Go to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello Mirek

Just a proposal. The addition is under the ___:

String AppendFileName(const String& path, const char *fileName) {
    String result = path;                              __________NEW__________
    if(result.GetLength() && *result.Last() != DIR_SEP && *fileName != DIR_SEP)
        result += DIR_SEP;
    result += fileName;
    return result;
}


Best regards
Koldo


Best regards
Iñaki
Re: A little improvement to AppendFileName [message #23321 is a reply to message #23320] Fri, 09 October 2009 12:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13463
Registered: November 2005
Ultimate Member
OK, why not.

Mirek
Re: A little improvement to AppendFileName [message #23322 is a reply to message #23321] Fri, 09 October 2009 13:52 Go to previous message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Smile

Best regards
Iñaki
Previous Topic: FindFile.IsSymLink() broken
Next Topic: Codepage problem in FileSel directory selection droplist
Goto Forum:
  


Current Time: Sat Dec 04 12:28:18 CET 2021

Total time taken to generate the page: 0.01796 seconds