String functions now default to length = 0, no padding.

This commit is contained in:
Jared Boone 2015-07-20 21:53:12 -07:00
parent e51db769e6
commit 4aa1c8fb65

View File

@ -40,9 +40,11 @@ namespace ui {
extern void dirty_event();
std::string to_string_dec_uint(const uint32_t n, const int32_t l, const char fill = 0);
std::string to_string_dec_int(const int32_t n, const int32_t l, const char fill = 0);
std::string to_string_hex(const uint32_t n, const int32_t l);
// TODO: Move these somewhere else!
// TODO: Allow l=0 to not fill/justify? Already using this way in ui_spectrum.hpp...
std::string to_string_dec_uint(const uint32_t n, const int32_t l = 0, const char fill = 0);
std::string to_string_dec_int(const int32_t n, const int32_t l = 0, const char fill = 0);
std::string to_string_hex(const uint32_t n, const int32_t l = 0);
struct Context {
FocusManager focus_manager;