ADTF
3.18.3
|
Public API for string conversion functions. More...
Go to the source code of this file.
Classes | |
struct | ToNumericConverter |
Safe convenience string-to-numeric conversion methods for generic programming. More... | |
Namespaces | |
a_util | |
Serves as the root component, with common functionality documented in core functionality. | |
a_util::strings | |
Serves as component for string handling and conversion functionality. | |
Functions | |
bool | toBool (const std::string &from, bool &to) |
Safely convert a string to a boolean value. More... | |
bool | toInt8 (const std::string &from, std::int8_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toInt16 (const std::string &from, std::int16_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toInt32 (const std::string &from, std::int32_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toInt64 (const std::string &from, std::int64_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt8 (const std::string &from, std::uint8_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt16 (const std::string &from, std::uint16_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt32 (const std::string &from, std::uint32_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt64 (const std::string &from, std::uint64_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toFloat (const std::string &from, float &to) |
Safely convert a string to a numeric value. More... | |
bool | toDouble (const std::string &from, double &to) |
Safely convert a string to a numeric value. More... | |
bool | toBool (const char *from, bool &to) |
Safely convert a string to a boolean value. More... | |
bool | toInt8 (const char *from, std::int8_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toInt16 (const char *from, std::int16_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toInt32 (const char *from, std::int32_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toInt64 (const char *from, std::int64_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt8 (const char *from, std::uint8_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt16 (const char *from, std::uint16_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt32 (const char *from, std::uint32_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toUInt64 (const char *from, std::uint64_t &to) |
Safely convert a string to a numeric value. More... | |
bool | toFloat (const char *from, float &to) |
Safely convert a string to a numeric value. More... | |
bool | toDouble (const char *from, double &to) |
Safely convert a string to a numeric value. More... | |
bool | toBool (const std::string &from) |
Convert a string to a boolean value. More... | |
std::int8_t | toInt8 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::int16_t | toInt16 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::int32_t | toInt32 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::int64_t | toInt64 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::uint8_t | toUInt8 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::uint16_t | toUInt16 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::uint32_t | toUInt32 (const std::string &from) |
Convert a string to a numeric value. More... | |
std::uint64_t | toUInt64 (const std::string &from) |
Convert a string to a numeric value. More... | |
float | toFloat (const std::string &from) |
Convert a string to a numeric value. More... | |
double | toDouble (const std::string &from) |
Convert a string to a numeric value. More... | |
bool | toBool (const char *from) |
Convert a string to a boolean value. More... | |
std::int8_t | toInt8 (const char *from) |
Convert a string to a numeric value. More... | |
std::int16_t | toInt16 (const char *from) |
Convert a string to a numeric value. More... | |
std::int32_t | toInt32 (const char *from) |
Convert a string to a numeric value. More... | |
std::int64_t | toInt64 (const char *from) |
Convert a string to a numeric value. More... | |
std::uint8_t | toUInt8 (const char *from) |
Convert a string to a numeric value. More... | |
std::uint16_t | toUInt16 (const char *from) |
Convert a string to a numeric value. More... | |
std::uint32_t | toUInt32 (const char *from) |
Convert a string to a numeric value. More... | |
std::uint64_t | toUInt64 (const char *from) |
Convert a string to a numeric value. More... | |
float | toFloat (const char *from) |
Convert a string to a numeric value. More... | |
double | toDouble (const char *from) |
Convert a string to a numeric value. More... | |
template<typename Numeric > | |
bool | toNumeric (const std::string &from, Numeric &to) |
Safely convert a string to a value of type Numeric in a generic manner. More... | |
template<typename Numeric > | |
bool | toNumeric (const char *from, Numeric &to) |
Safely convert a string to a value of type Numeric in a generic manner. More... | |
template<typename Numeric > | |
Numeric | toNumeric (const std::string &from) |
Convert a string to a numeric value in a generic manner. More... | |
template<typename Numeric > | |
Numeric | toNumeric (const char *from) |
Convert a string to a numeric value in a generic manner. More... | |
Public API for string conversion functions.
Copyright @ 2023 VW Group. All rights reserved. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Definition in file strings_convert_decl.h.