From 7dd70b971a75b7e8c32f1e0701e05adf7fa1790a Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Thu, 9 Mar 2017 18:52:57 +0800 Subject: [PATCH] StringEngine Added. --- MiniEngine.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/MiniEngine.h b/MiniEngine.h index d4c6587..3e2dd0a 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -381,10 +381,31 @@ namespace MiniEngine }/// End of namespace MiniEngine::EventHandle + class StringEngine + { + public: + StringEngine(std::string StringFile,std::string LanguageTag); + + StringEngine(StringEngine& )=delete; + StringEngine& operator = (StringEngine& )=delete; + + int useLanaguage(std::string LanguageTag); + bool ready(); + std::string getString(std::string Tag); + ~StringEngine(); + private: + struct impl; + impl* pimpl; + }; + }/// End of namespace MiniEngine std::string UTF8ToGBK(std::string UTF8String); std::string GBKToUTF8(std::string GBKString); +bool canread(std::string Path); +bool canwrite(std::string Path); +bool isexist(std::string Path); +bool canexecute(std::string Path); /// Your Program Should Start Here int AppMain();