#include <mrpt/utils/utils_defs.h>
Go to the source code of this file.
Namespaces | |
namespace | mrpt |
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. | |
namespace | mrpt::system |
This namespace provides a OS-independent interface to many useful functions: filenames manipulation, time and date, string parsing, file I/O, threading, memory allocation, etc. | |
Functions | |
String management and utilities | |
char BASE_IMPEXP * | mrpt::system::strtok (char *str, const char *strDelimit, char **context) MRPT_NO_THROWS |
An OS-independent method for tokenizing a string. | |
void BASE_IMPEXP | mrpt::system::tokenize (const std::string &inString, const std::string &inDelimiters, std::deque< std::string > &outTokens) MRPT_NO_THROWS |
Tokenizes a string according to a set of delimiting characters. | |
void BASE_IMPEXP | mrpt::system::tokenize (const std::string &inString, const std::string &inDelimiters, std::vector< std::string > &outTokens) MRPT_NO_THROWS |
Tokenizes a string according to a set of delimiting characters. | |
std::string BASE_IMPEXP | mrpt::system::trim (const std::string &str) |
Removes leading and trailing spaces. | |
std::string BASE_IMPEXP | mrpt::system::upperCase (const std::string &str) |
Returns a lower-case version of a string. | |
std::string BASE_IMPEXP | mrpt::system::lowerCase (const std::string &str) |
Returns an upper-case version of a string. | |
void BASE_IMPEXP | mrpt::system::decodeUTF8 (const std::string &strUTF8, vector_word &out_uniStr) |
Decodes a UTF-8 string into an UNICODE string. | |
void BASE_IMPEXP | mrpt::system::encodeUTF8 (const vector_word &input, std::string &output) |
Encodes a 2-bytes UNICODE string into a UTF-8 string. | |
void BASE_IMPEXP | mrpt::system::encodeBase64 (const vector_byte &inputData, std::string &outString) |
Encode a sequence of bytes as a string in base-64. | |
bool BASE_IMPEXP | mrpt::system::decodeBase64 (const std::string &inString, vector_byte &outData) |
Decode a base-64 string into the original sequence of bytes. | |
std::string BASE_IMPEXP | mrpt::system::unitsFormat (const double val, int nDecimalDigits=2, bool middle_space=true) |
This function implements formatting with the appropriate SI metric unit prefix: 1e-12->'p', 1e-9->'n', 1e-6->'u', 1e-3->'m', 1->'', 1e3->'K', 1e6->'M', 1e9->'G', 1e12->'T'. | |
std::string BASE_IMPEXP | mrpt::system::rightPad (const std::string &str, const size_t total_len, bool truncate_if_larger=false) |
Enlarge the string with spaces up to the given length. | |
bool BASE_IMPEXP | mrpt::system::strCmp (const std::string &s1, const std::string &s2) |
Return true if the two strings are equal (case sensitive) | |
bool BASE_IMPEXP | mrpt::system::strCmpI (const std::string &s1, const std::string &s2) |
Return true if the two strings are equal (case insensitive) | |
bool BASE_IMPEXP | mrpt::system::strStarts (const std::string &str, const std::string &subStr) |
Return true if "str" starts with "subStr" (case sensitive) | |
bool BASE_IMPEXP | mrpt::system::strStartsI (const std::string &str, const std::string &subStr) |
Return true if "str" starts with "subStr" (case insensitive) |
Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:46:17 UTC 2011 |