ParamKit
A small library helping to parse commandline parameters (for Windows).
|
The set of utility functions used by the ParamKit. More...
#include <windows.h>
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <set>
#include "strings_util.h"
Go to the source code of this file.
Namespaces | |
paramkit | |
Macros | |
#define | GETNAME(x) (#x) |
Functions | |
bool | paramkit::is_hex (const char *buf, size_t len) |
bool | paramkit::is_hex_with_prefix (const char *buf) |
bool | paramkit::is_dec (const char *buf, size_t len) |
bool | paramkit::is_number (const char *my_buf) |
long | paramkit::get_number (const char *my_buf) |
size_t | paramkit::strip_to_list (IN std::string s, IN std::string delim, OUT std::set< std::string > &elements_list) |
std::string & | paramkit::trim (std::string &str, const std::string &chars="\t\n\v\f\r ") |
bool | paramkit::get_console_color (HANDLE hConsole, int &color) |
void | paramkit::print_in_color (int color, const std::string &text) |
template<typename T_CHAR > | |
std::string | paramkit::to_string (T_CHAR *str1) |
template<typename T_CHAR > | |
int | paramkit::loadInt (const T_CHAR *str1, bool isHex=false) |
template<typename T_CHAR > | |
bool | paramkit::loadBoolean (IN const T_CHAR *str1, OUT bool &value) |
template<typename T_STR , typename T_CHAR > | |
size_t | paramkit::copy_to_cstr (T_STR value, T_CHAR *buf, size_t buf_count) |
Copy the std::string/std::wstring value into an buffer of a given character count. More... | |
The set of utility functions used by the ParamKit.
Definition in file pk_util.h.