Audacity 3.2.0
|
Declare functions to convert numeric types to string representation. More...
#include <system_error>
Go to the source code of this file.
Classes | |
struct | FromCharsResult |
Result of the conversion, similar to std::from_chars_result. More... | |
Functions | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, float &value) noexcept |
Parse a string into a single precision floating point value, always uses the dot as decimal. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, double &value) noexcept |
Parse a string into a single precision floating point value, always uses the dot as decimal. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, short &value) noexcept |
Parse a string into a signed 16-bit integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, unsigned short &value) noexcept |
Parse a string into an unsigned 16-bit integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, int &value) noexcept |
Parse a string into a signed 32-bit integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, unsigned int &value) noexcept |
Parse a string into an unsigned 32-bit integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, long &value) noexcept |
Parse a string into a signed long integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, unsigned long &value) noexcept |
Parse a string into an unsigned long integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, long long &value) noexcept |
Parse a string into a signed 64-bit integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, unsigned long long &value) noexcept |
Parse a string into an unsigned 64-bit integer value. More... | |
STRING_UTILS_API FromCharsResult | FromChars (const char *buffer, const char *last, bool &value) noexcept |
Parse a string into a boolean value. String must be "0" or "1". More... | |
Declare functions to convert numeric types to string representation.
Audacity: A Digital Audio Editor
Dmitry Vedenko
Definition in file FromChars.h.
|
noexcept |
Parse a string into a boolean value. String must be "0" or "1".
Definition at line 206 of file FromChars.cpp.
|
noexcept |
Parse a string into a single precision floating point value, always uses the dot as decimal.
Definition at line 159 of file FromChars.cpp.
References fast_float::from_chars().
|
noexcept |
Parse a string into a single precision floating point value, always uses the dot as decimal.
Definition at line 153 of file FromChars.cpp.
References fast_float::from_chars().
Referenced by anonymous_namespace{ImportMP3_MPG123.cpp}::GetId3v2Genre(), ProjectFileIO::GetValue(), audacity::cloud::audiocom::sync::anonymous_namespace{WavPackCompressor.cpp}::Importer::Importer(), audacity::cloud::audiocom::sync::anonymous_namespace{ResumedSnaphotUploadOperation.cpp}::IsUrlExpired(), XMLAttributeValueView::TryGet(), and XMLAttributeValueView::TryGetInteger().
|
noexcept |
Parse a string into a signed 32-bit integer value.
Definition at line 175 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into a signed long integer value.
Definition at line 185 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into a signed 64-bit integer value.
Definition at line 195 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into a signed 16-bit integer value.
Definition at line 165 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into an unsigned 32-bit integer value.
Definition at line 180 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into an unsigned long integer value.
Definition at line 190 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into an unsigned 64-bit integer value.
Definition at line 200 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().
|
noexcept |
Parse a string into an unsigned 16-bit integer value.
Definition at line 170 of file FromChars.cpp.
References anonymous_namespace{FromChars.cpp}::IntFromChars().