gccDppConsole Test C++ SDK
20170920
DPP C++ Console Demonstration
|
00001 #pragma once 00002 #ifndef STRINGEX_H 00003 #define STRINGEX_H 00004 #ifdef _MSC_VER 00005 #pragma warning(disable:4996) // uses _vsnprintf, disable warning, can use _CRT_SECURE_NO_WARNINGS 00006 // #define _CRT_SECURE_NO_WARNINGS 00007 #endif 00008 #include <stdio.h> 00009 #include <stdarg.h> 00010 #include <cstdarg> 00011 #include <vector> 00012 #include <string> 00013 #include <cctype> // std::toupper, std::tolower 00014 using namespace std; 00015 00016 class stringex 00017 { 00018 public: 00019 stringex(void); 00020 ~stringex(void); 00021 std::string Format (const char *fmt, ...); 00022 std::string MakeUpper(string StdString); 00023 std::string MakeLower(string StdString); 00024 00025 private: 00026 std::string vformat (const char *fmt, va_list ap); 00027 00028 }; 00029 00030 #endif