Utility functions for dealing with strings. More...
#include "Config.h"#include <cinttypes>#include <cstdio>#include <cstring>#include <limits>#include <map>#include <string>#include <vector>#include <boost/cstdint.hpp>Go to the source code of this file.
Namespaces | |
| te | |
| URI C++ Library. | |
| te::common | |
| Namespace for the Common module of TerraLib. | |
Functions | |
| std::string | te::common::Convert2LCase (const std::string &value) |
| It converts a string to lower case. More... | |
| std::string | te::common::Convert2String (boost::int16_t value) |
| It converts a short integer value to a string. More... | |
| std::string | te::common::Convert2String (boost::uint16_t value) |
| It converts a unsigned short integer value to a string. More... | |
| std::string | te::common::Convert2String (boost::int32_t value) |
| It converts an integer value to a string. More... | |
| std::string | te::common::Convert2String (boost::uint32_t value) |
| It converts an unsigned integer value to a string. More... | |
| std::string | te::common::Convert2String (boost::int64_t value) |
| It converts a long value to a string. More... | |
| std::string | te::common::Convert2String (boost::uint64_t value) |
| It converts a unsigned long value to a string. More... | |
| std::string | te::common::Convert2String (float value) |
| It converts a double value to a string. More... | |
| std::string | te::common::Convert2String (double value) |
| It converts a double value to a string. More... | |
| std::string | te::common::Convert2String (double value, int precision) |
| It converts a double value to a string with a precision. More... | |
| std::string | te::common::Convert2UCase (const std::string &value) |
| It converts a string to upper case. More... | |
| void | te::common::Convert2UCaseInPlace (std::string &value) |
| It converts a string to upper case in place (it doesn't allocate an auxiliar buffer). More... | |
| char * | te::common::CreateCString (const std::string &s) |
| It converts the C++ string to a C-string. More... | |
| char ** | te::common::CreateCStringArray (const std::vector< std::string *> &vs) |
| It converts the C++ vector of string pointers to a C array os strings. More... | |
| char ** | te::common::CreateCStringArray (const std::vector< std::string > &vs) |
| It converts the C++ vector of string pointers to a C array os strings. More... | |
| void | te::common::ExtractKVP (const std::string &kvpStr, std::map< std::string, std::string > &kvp, const std::string &kvpDelimiter="&", const std::string &kvDelimiter="=", bool toUpper=false) |
| It extracts a key-value map from a string. More... | |
| std::string | te::common::ReplaceSpecialChars (const std::string &str, bool &changed) |
| It replace special characters of a string. More... | |
| TECOMMONEXPORT std::vector< std::string > | te::common::SplitString (const std::string &str, const char &delimiter) |
| void | te::common::Tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ") |
| It tokenizes a given string with a delimiter of your own choice. More... | |
Utility functions for dealing with strings.
Definition in file StringUtils.h.