Utils Class Reference

#include <utils.h>

List of all members.

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)


Detailed Description

Todo:
ask abby2

Definition at line 13 of file utils.h.


Member Function Documentation

static std::string Utils::IntToStr ( int  integer  )  [inline, static]

Definition at line 26 of file utils.h.

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

static void Utils::strToLowercase ( std::string &  str  )  [inline, static]

Definition at line 60 of file utils.h.

static void Utils::trim ( std::string &  str,
const std::string  dropChars = " \t\n\r" 
) [inline, static]

Definition at line 16 of file utils.h.


The documentation for this class was generated from the following file:

Generated on Mon Aug 17 00:32:22 2015 for Moses by  doxygen 1.5.9