Jpp  18.2.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
JLangToolkit.hh File Reference
#include <string>
#include <sstream>
#include <iterator>
#include <ctype.h>

Go to the source code of this file.

Namespaces

 JLANG
 Auxiliary classes and methods for language specific functionality.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

template<class T , size_t N>
size_t JLANG::getSize (T(&array)[N])
 Get size of c-array. More...
 
template<class JFirst_t , class JSecond_t >
bool JLANG::is_identical (JFirst_t &first, JSecond_t &second)
 Check if two objects are indentical. More...
 
bool JLANG::is_integer (const std::string &buffer)
 Check if string is an integer. More...
 
std::string JLANG::trim (const std::string &buffer)
 Trim string. More...
 
std::string JLANG::trim (const std::string &buffer, const char c)
 Trim string. More...
 
std::string JLANG::replace (const std::string &input, const std::string &target, const std::string &replacement)
 Replace tokens in string. More...
 
std::string JLANG::replace (const std::string &input, const char target, const std::string &replacement)
 Replace characters in string. More...
 
std::string JLANG::replace (const std::string &input, const char target, const char replacement)
 Replace characters in string. More...
 
std::string JLANG::trim (const std::string &buffer, const std::string &target)
 Trim string. More...
 
template<class T >
std::string JLANG::to_string (const T &value)
 Convert value to string. More...
 
template<class T >
T JLANG::to_value (const std::string &input)
 Convert string to value. More...
 
std::string JLANG::to_upper (const std::string &value)
 Convert all character to upper case. More...
 
std::string JLANG::to_lower (const std::string &value)
 Convert all character to lower case. More...
 
size_t JLANG::get_number_of_tokens (const std::string &buffer)
 Count number of white space separated tokens. More...
 
bool JLANG::is_single_quoted (const std::string &value)
 Check quotation. More...
 
bool JLANG::is_double_quoted (const std::string &value)
 Check quotation. More...
 
std::string JLANG::single_quote (const std::string &value)
 Quote string. More...
 
std::string JLANG::double_quote (const std::string &value)
 Quote string. More...