Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
string_parse.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <string_view>

Classes

struct  sw::universal::string_parse::prefix_scan
struct  sw::universal::string_parse::sign_scan
struct  sw::universal::string_parse::bit_pattern_result
struct  sw::universal::string_parse::decimal_float_scan
struct  sw::universal::string_parse::detail::int32_parse_result

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::string_parse
namespace  sw::universal::string_parse::detail

Enumerations

enum class  sw::universal::string_parse::number_base : std::uint8_t {
  sw::universal::string_parse::unknown = 0 , sw::universal::string_parse::binary = 2 , sw::universal::string_parse::octal = 8 , sw::universal::string_parse::decimal = 10 ,
  sw::universal::string_parse::hex = 16
}

Functions

constexpr prefix_scan sw::universal::string_parse::scan_prefix (std::string_view s) noexcept
constexpr sign_scan sw::universal::string_parse::scan_sign (std::string_view s) noexcept
constexpr bool sw::universal::string_parse::is_binary_digit (char c) noexcept
constexpr bool sw::universal::string_parse::is_octal_digit (char c) noexcept
constexpr bool sw::universal::string_parse::is_decimal_digit (char c) noexcept
constexpr bool sw::universal::string_parse::is_hex_digit (char c) noexcept
constexpr unsigned sw::universal::string_parse::hex_digit_value (char c) noexcept
constexpr bit_pattern_result sw::universal::string_parse::parse_binary (std::string_view s) noexcept
constexpr bit_pattern_result sw::universal::string_parse::parse_octal (std::string_view s) noexcept
constexpr bit_pattern_result sw::universal::string_parse::parse_hex (std::string_view s) noexcept
constexpr int32_parse_result sw::universal::string_parse::detail::parse_int32 (std::string_view s) noexcept
constexpr decimal_float_scan sw::universal::string_parse::scan_decimal_float (std::string_view s) noexcept