Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

strings.h 547B

1234567891011121314151617181920212223242526
  1. /*!
  2. * \file include/utils/strings.h
  3. * \brief String handling utilities
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _UTILS_STRINGS_H_
  8. #define _UTILS_STRINGS_H_
  9. #include <string>
  10. std::string findAndReplace(std::string s, std::string find, std::string replace);
  11. std::string expandHomeDirectory(std::string s);
  12. bool stringEndsWith(std::string s, std::string suffix, bool casesensitive = false);
  13. std::string removeLastPathElement(std::string s);
  14. std::string getLastPathElement(std::string s);
  15. std::string convertPathDelimiter(std::string s);
  16. #endif