Wtx ~ Wt Extension Library
WtxLib
Core.h
1 
2 #ifndef __WTX_CORE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__
3 #define __WTX_CORE_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__
4 
5 #include <string>
6 #include <vector>
7 
8 //#define COUT_FLF __FILE__, __LINE__, __FUNCTION__
9 //#define COUT_BEG std::cout << __FILE__ << ":" << __LINE__ << "(" << __PRETTY_FUNCTION__ << ") "
10 //#define COUT_END std::endl
11 //#define COUT_LINE std::cout << __FILE__ << ":" << __LINE__ << "(" << __PRETTY_FUNCTION__ << ")" << COUT_END
12 //#define COUT_(x) COUT_BEG << x << COUT_END
13 
14 
15 namespace Wtx {
16 
21  namespace Core {
22 
23 
24 std::vector<std::string> split( const std::string & value, char delim );
25 
26 extern const char* trim_ws;
27 std::string & rtrim( std::string & s, const char* t = trim_ws );
28 std::string & ltrim( std::string & s, const char* t = trim_ws );
29 std::string & trim( std::string & s, const char* t = trim_ws );
30 std::string toupper( const std::string & s );
31 std::string tolower( const std::string & s );
32 
33  } // endnamespace Core
34 } // endnamespace Wtx
35 
36 #endif
37 
witty extension library
Definition: Activity.h:51