Changeset 3297
- Timestamp:
- Aug 6, 2014, 2:10:04 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/utility.h
r3295 r3297 419 419 420 420 /// \endcond 421 422 423 No error if \a dir already exist. Make parent directories as needed.424 425 \since New in yat 0.10426 */427 void mkdir_p(const std::string& dir, mode_t mode=0777);428 429 /**430 same as C function remove but throws errno_error at failure431 432 \see http://linux.die.net/man/3/remove433 434 \since New in yat 0.12435 */436 void remove(const std::string& fn);437 438 /**439 same as C function with same name but throws errno_error if error440 is encountered441 442 \see http://linux.die.net/man/3/rename443 444 \since New in yat 0.12445 */446 void rename(const std::string& from, const std::string& to);447 448 /**449 In \a full_str replace every sub-string \a old_str with \a450 new_str;451 452 \since New in yat 0.10453 */454 void replace(std::string& full_str, std::string old_str, std::string new_str);455 421 456 422 // template implementations
Note: See TracChangeset
for help on using the changeset viewer.