#include <utils.h>
Static Public Member Functions | |
static void | trim (std::string &str, const std::string dropChars=" \t\n\r") |
static void | rtrim (std::string &str, const std::string dropChars=" \t\n\r") |
static void | ltrim (std::string &str, const std::string dropChars=" \t\n\r") |
static std::string | IntToStr (int integer) |
static int | splitToStr (const char *str, std::vector< std::string > &items, const char *delm="\t") |
static int | splitToStr (std::string buff, std::vector< std::string > &items, std::string delm="\t") |
static int | splitToInt (std::string buff, std::vector< int > &items, std::string delm=",") |
static void | strToLowercase (std::string &str) |
Definition at line 13 of file utils.h.
static std::string Utils::IntToStr | ( | int | integer | ) | [inline, static] |
static void Utils::ltrim | ( | std::string & | str, | |
const std::string | dropChars = " \t\n\r" | |||
) | [inline, static] |
Definition at line 23 of file utils.h.
Referenced by Moses::Parameters::loadParams().
static void Utils::rtrim | ( | std::string & | str, | |
const std::string | dropChars = " \t\n\r" | |||
) | [inline, static] |
Definition at line 20 of file utils.h.
Referenced by Moses::LanguageModelORLM::~LanguageModelORLM().
static int Utils::splitToInt | ( | std::string | buff, | |
std::vector< int > & | items, | |||
std::string | delm = "," | |||
) | [inline, static] |
Definition at line 49 of file utils.h.
References splitToStr().
static int Utils::splitToStr | ( | std::string | buff, | |
std::vector< std::string > & | items, | |||
std::string | delm = "\t" | |||
) | [inline, static] |
Definition at line 43 of file utils.h.
References splitToStr().
static int Utils::splitToStr | ( | const char * | str, | |
std::vector< std::string > & | items, | |||
const char * | delm = "\t" | |||
) | [inline, static] |
Definition at line 31 of file utils.h.
References NULL.
Referenced by OnlineRLM< T >::cleanUpHPD(), splitToInt(), and splitToStr().
static void Utils::strToLowercase | ( | std::string & | str | ) | [inline, static] |
static void Utils::trim | ( | std::string & | str, | |
const std::string | dropChars = " \t\n\r" | |||
) | [inline, static] |