Ignore:
Timestamp:
12/29/19 16:08:36 (4 years ago)
Author:
Maciej Komosinski
Message:

Added a helper function to concatenate path components inserting PATH_SEPARATOR_CHAR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/sstringutils.cpp

    r786 r904  
    291291}
    292292
     293SString concatPath(const SString& in1,const SString& in2)
     294{
     295        SString out=in1;
     296        if (out.len()>0 && out[out.len()-1]!=PATH_SEPARATOR_CHAR)
     297                out+=PATH_SEPARATOR_CHAR;
     298        out+=in2;
     299        return out;
     300}
     301
    293302bool removeCR(SString& s)
    294303{
Note: See TracChangeset for help on using the changeset viewer.