KString.h 587 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <string>
  3. // Error reporting with levels similar to Android and are automatically forwarded to Continuous integration server
  4. enum ErrorLevel {
  5. WARNLVL,
  6. ERRORLVL,
  7. INFOLVL,
  8. DEBUGLVL
  9. };
  10. extern void KOutputDebug(ErrorLevel lvl, const char *fmt ...);
  11. extern std::string GetFileName(const std::string &thePath, bool noExtension);
  12. extern std::string GetFileDir(const std::string &thePath, bool withSlash);
  13. extern std::string GetFileExt(const std::string &thePath);
  14. extern int CompareNoCase(const std::string &str1, const std::string &str2);