TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_numeric_text.h File Reference
#include <gui_core/text/gui_numeric_type.h>
#include <cstdint>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  tachyon

Functions

std::string tachyon::FormatNumber (NumericType type, const NumericValue &value)
 value as text; floats use up to 9 significant digits, NaN and infinities spelled out.
bool tachyon::ParseNumber (std::string_view text, NumericType type, NumericValue &outValue)
 The whole text as a number of type: in range and, for floats, finite.
bool tachyon::FilterNumberText (NumericType type, std::string &text)
 Strips what a number of type can't hold (letters, a second dot, ...).
bool tachyon::IsNumberCharacter (NumericType type, uint32_t codepoint)
 Whether codepoint can be typed into a number of type.