libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
String.h File Reference
#include <limits>
#include <list>
#include <string>
#include <osmscout/CoreFeatures.h>
#include <osmscout/system/Assert.h>
#include <osmscout/private/CoreImportExport.h>
#include <osmscout/Types.h>

Classes

struct  osmscout::NumberToStringTemplated< is_signed, N >
 
struct  osmscout::NumberToStringTemplated< false, N >
 
struct  osmscout::NumberToStringTemplated< true, N >
 
struct  osmscout::StringToNumberTemplated< is_signed, N >
 
struct  osmscout::StringToNumberTemplated< false, N >
 
struct  osmscout::StringToNumberTemplated< true, N >
 

Namespaces

 osmscout
 

Functions

OSMSCOUT_API const char * osmscout::BoolToString (bool value)
 Rteurns a string representation of the given boolean value (either 'true' or 'false') More...
 
OSMSCOUT_API std::string osmscout::ByteSizeToString (FileOffset size)
 
OSMSCOUT_API std::string osmscout::ByteSizeToString (double size)
 
OSMSCOUT_API bool osmscout::GetDigitValue (char digit, size_t &result)
 Returns the numerical value of the given character, if the character is a digit in a numerical value. More...
 
OSMSCOUT_API std::string osmscout::GetFirstInStringList (const std::string &stringList, const std::string &divider)
 Assumes that the string consists of a number of values separated by one of the given divider. More...
 
OSMSCOUT_API void osmscout::GroupStringListToStrings (std::list< std::string >::const_iterator token, size_t listSize, size_t parts, std::list< std::list< std::string > > &lists)
 Given a list of strings, individual strings will be combined into a given number of sub groups (individual string concatenated and separated by a space). More...
 
OSMSCOUT_API std::string osmscout::LocaleStringToUTF8String (const std::string &text)
 Convert the given std::string in the current locale to a std::string containing a corresponding UTF8 character sequence. More...
 
OSMSCOUT_API std::wstring osmscout::LocaleStringToWString (const std::string &text)
 Converts the given std::string with content in the current locale to a std::wstring. More...
 
template<typename N >
size_t osmscout::NumberDigits (const N &number, size_t base=10)
 
template<typename N >
std::string osmscout::NumberToString (const N &number)
 Converts the given (possibly negative) decimal number to a std::string. More...
 
template<typename N >
std::string osmscout::NumberToStringSigned (const N &number)
 
template<typename N >
std::string osmscout::NumberToStringUnsigned (const N &number)
 
OSMSCOUT_API void osmscout::SimplifyTokenList (std::list< std::string > &tokens)
 Simplifying a token list by merging tokens that start with an upper case letter followed by a token starting with a lower case letter. More...
 
OSMSCOUT_API void osmscout::SplitStringAtSpace (const std::string &input, std::list< std::string > &tokens)
 Converts the given string into a list of whitespace separated (std::isspace()) strings. More...
 
OSMSCOUT_API std::string osmscout::StringListToString (const std::list< std::string > &list, const std::string &separator="/")
 
OSMSCOUT_API bool osmscout::StringToBool (const char *string, bool &value)
 Convert the given string to a boolean value. More...
 
OSMSCOUT_API bool osmscout::StringToNumber (const char *string, double &value)
 
OSMSCOUT_API bool osmscout::StringToNumber (const std::string &string, double &value)
 
template<typename N >
unsigned int osmscout::StringToNumber (const std::string &string, N &number, size_t base=10)
 Converts a string holding a (possibly negative) numerical value of the given base to the numerical value itself. More...
 
template<typename N >
bool osmscout::StringToNumberSigned (const std::string &string, N &number, size_t base=10)
 
template<typename N >
bool osmscout::StringToNumberUnsigned (const std::string &string, N &number, size_t base=10)
 
OSMSCOUT_API void osmscout::TokenizeString (const std::string &input, std::list< std::string > &tokens)
 Converts the given string into a list of whitespace or colon-separated strings. More...
 
OSMSCOUT_API std::string osmscout::UTF8StringToLocaleString (const std::string &text)
 Convert the given std::string in UTF-8 a std::string containing to corresponding string in the current locale. More...
 
OSMSCOUT_API std::string osmscout::UTF8StringToLower (const std::string &text)
 Convert the given std::string containing a UTF8 character sequence to lower case using the current global locale. More...
 
OSMSCOUT_API std::string osmscout::UTF8StringToUpper (const std::string &text)
 Convert the given std::string containing a UTF8 character sequence to upper case using the current global locale. More...
 
OSMSCOUT_API std::wstring osmscout::UTF8StringToWString (const std::string &text)
 Convert the given std::string containign a UTF8 character sequence to a std::wstring. More...
 
OSMSCOUT_API std::string osmscout::WStringToLocaleString (const std::wstring &text)
 Converts the given std::wstring to a std::string with content in the current locale. More...
 
OSMSCOUT_API std::string osmscout::WStringToUTF8String (const std::wstring &text)
 Convert the given std::wstring to a std::string containing a corresponding UTF8 character sequence. More...