From 26310b6ff3b4cb92cc9bb462536a9c5235fc3389 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 7 Sep 2012 16:38:44 +0200 Subject: added a libutil for porting stuff and helpers --- include/util/win32/errormsg.hpp | 10 ++++++++++ include/util/win32/stringutils.hpp | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 include/util/win32/errormsg.hpp create mode 100755 include/util/win32/stringutils.hpp (limited to 'include/util') diff --git a/include/util/win32/errormsg.hpp b/include/util/win32/errormsg.hpp new file mode 100755 index 0000000..f1ceb93 --- /dev/null +++ b/include/util/win32/errormsg.hpp @@ -0,0 +1,10 @@ +#ifndef __ERRORMSG_H +#define __ERRORMSG_H + +#include + +#include "CrawlerExportable.hpp" + +CRAWLER_DLL_VISIBLE std::string getLastError( ); + +#endif diff --git a/include/util/win32/stringutils.hpp b/include/util/win32/stringutils.hpp new file mode 100755 index 0000000..b0404cd --- /dev/null +++ b/include/util/win32/stringutils.hpp @@ -0,0 +1,10 @@ +#ifndef __STRINGUTILS_H +#define __STRINGUTILS_H + +#include + +#include "CrawlerExportable.hpp" + +CRAWLER_DLL_VISIBLE std::wstring s2ws( const std::string &s ); + +#endif -- cgit v1.2.3-54-g00ecf