123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #include "SpBase.h"
- #include<vector>
- #include<string>
- extern void* logProducer;
- extern bool g_useMagic;
- #if defined(RVC_OS_WIN)
- extern bool g_useMagic;
- #endif //RVC_OS_WIN
- void DbgEx(const char* str, ...);
- std::vector<std::string> find_files(const std::string srcPath, const std::string fileName, bool isDir = false);
- std::string generateTimeStr(bool isSimple = false);
- DWORD SaveCefclientLog(std::string magicStr);
- bool SYSTEM_ON(std::string cmdLine, bool isWait = true);
- bool InitFileLogger(std::string dbgPath);
- void DbgToFileLogger(std::string msg);
- bool deleteDir_byFileSystem(const std::string srcPath);
- void InitTranslateFile(std::string srcFile);
- std::pair<unsigned long, std::string> splitStrToUserCodeAndErrMsg(std::string srcMsg);
- std::string UtfToGbk(const char* utf8);
- std::string ConvertGBKToUtf8(std::string& strGBK);
- void hexdump(const char* buf, const int num);
- std::string hexdumpToString(const char* buf, const int num);
- bool modifyBySpecialStr(std::wstring& src);
- void receivehexdump(const char* buf, const int num);
- void doWithDebugModeData(const char* strMethod, const char* buf);
- class json_deal {
- public:
- static std::pair<bool, CSimpleStringA> getStringFromCjsonObj(void* object, const char* name);
- static std::pair<bool, int> getIntergerFromCjsonObj(void* object, const char* name);
- static std::pair<bool, double> getDoubleFromCjsonObj(void* object, const char* name);
- };
- #if (defined _WIN32 || defined _WIN64)
- long WINAPI printSEG(struct _EXCEPTION_POINTERS* ExceptionInfo);
- #else
- long printSEG();
- void set_traceback_path(std::string path);
- void seg_signal_handler(int signum);
- void normal_signal_handle(int signum);
- #endif
|