#ifndef OFEN_STRING_HEADER #define OFEN_STRING_HEADER #include "of_def.hpp" #include namespace ofen { class COfStr { public: COfStr(); ~COfStr(); public: static ofString replace(const ofString& str, const ofString& from, const ofString& to); static std::vector split(const ofString& input, const ofString& delimiter); static ofString trim(const ofString& input); /// @brief 获取一个添加当前日期后缀的字符串(到秒,如 some.txt => some_20150115151221.txt)。 /// @param name /// @return static ofString get_ofile_name(const ofString& name); }; }; // namespace ofen #endif