Changeset 904
- Timestamp:
- 12/29/19 16:08:36 (5 years ago)
- Location:
- cpp/frams/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/sstringutils.cpp
r786 r904 291 291 } 292 292 293 SString 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 293 302 bool removeCR(SString& s) 294 303 { -
cpp/frams/util/sstringutils.h
r786 r904 28 28 29 29 SString trim(const SString& s); ///< remove leading/trailing whitespace 30 SString concatPath(const SString& in1,const SString& in2); ///< concatenate path components inserting PATH_SEPARATOR_CHAR if not already present 30 31 bool removeCR(SString& s); ///< remove '\r' return true if changed 31 32 bool matchWildcard(const SString& word, const SString& pattern);///< '*' in pattern matches any substring
Note: See TracChangeset
for help on using the changeset viewer.