|
COMMON_API int | Wasp::IsOdd (int x) |
|
COMMON_API int | Wasp::IsPowerOfTwo (unsigned int x) |
| Return true if power of two.
|
|
COMMON_API int | Wasp::Min (int a, int b) |
|
COMMON_API int | Wasp::Max (int a, int b) |
|
COMMON_API size_t | Wasp::Min (size_t a, size_t b) |
|
COMMON_API size_t | Wasp::Max (size_t a, size_t b) |
|
COMMON_API float | Wasp::Min (float a, float b) |
|
COMMON_API float | Wasp::Max (float a, float b) |
|
COMMON_API double | Wasp::Min (double a, double b) |
|
COMMON_API double | Wasp::Max (double a, double b) |
|
COMMON_API double | Wasp::LogBaseN (double x, double n) |
|
COMMON_API int | Wasp::ILog2 (int n) |
|
COMMON_API int | Wasp::StrCmpNoCase (const string &s, const string &t) |
| Case-insensitive string comparison.
|
|
COMMON_API void | Wasp::StrRmWhiteSpace (string &s) |
| Remove white space from a string.
|
|
COMMON_API void | Wasp::StrToWordVec (const string &s, vector< string > &v) |
| Parse a string, returning a vector of words.
|
|
COMMON_API std::vector< std::string > & | Wasp::SplitString (const std::string &s, char delim, std::vector< std::string > &elems) |
|
COMMON_API std::vector< size_t > & | Wasp::SplitString (const std::string &s, char delim, std::vector< size_t > &elems) |
|
COMMON_API std::vector< int > & | Wasp::SplitString (const std::string &s, char delim, std::vector< int > &elems) |
|
COMMON_API std::vector< float > & | Wasp::SplitString (const std::string &s, char delim, std::vector< float > &elems) |
|
COMMON_API std::vector< double > & | Wasp::SplitString (const std::string &s, char delim, std::vector< double > &elems) |
|
COMMON_API unsigned long long | Wasp::GetBits64 (unsigned long long targ, int pos, int n) |
|
COMMON_API unsigned long long | Wasp::SetBits64 (unsigned long long targ, int pos, int n, unsigned long long src) |
|
COMMON_API double | Wasp::ran1 (long *) |
|