Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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