Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
Go to the source code of this file.
Classes | |
class | TimedExecution |
Helper class for measuring execution time for functions Call ClockStart and ClockEnd at end of execution If getDuration is being called without ClockEnd, it will return elapsed time but continue counting. More... | |
Namespaces | |
namespace | belofte |
Allow index mapper for char values of piece into int in 1-12 range to reduce space and easy initialisation. | |
Typedefs | |
typedef std::vector< std::string > | belofte::stringList |
Functions | |
stringList const | belofte::stringSplit (std::string src, std::string const &delim) |
Split delimited long string into a vector. | |
std::pair< std::string, std::string > | belofte::decompose (std::string const &src, std::string const &delim) |
Split delimited long string into a pair based on delimiter e.g. | |
std::string | belofte::to_string (int16_t value) |
std::to_string not compatible on Mac OS (Apple LLVM version 5.0) provide generic utility function | |
std::string | belofte::to_string (int32_t value) |
std::string | belofte::to_string (int64_t value) |
std::string | belofte::alltrim (std::string s, std::string const &delim=" ") |
trim left and right spaces or delim from string | |
bool | belofte::is_number (std::string const &s) |
int | belofte::getRandomInt (int const nCeil) |
return random in between 0 and nCeil - 1 | |
int | belofte::getRandomRange (int const nStart, int const nMax) |
std::string | belofte::getRCname (std::string const &basename) |
convert executable name into name.rc, possibly dropping .exe suffix | |
int | belofte::positionParamIndex (stringList const ¶m, std::string const &find) |
find position in which param has been found | |
int | belofte::positionParamValue (stringList const ¶m, std::string const &find, unsigned long const nOffSet=0) |
std::string | belofte::currentDate () |
std::string | belofte::prettyTime (long const t) |