Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
string.h
1#pragma once
2#include <cstdint>
3#include <expected>
4#include <string>
5#include <system_error>
6
7namespace deluge {
8std::expected<char*, std::errc> to_chars(char* first, char* last, float value, int precision);
9} // namespace deluge
10
11namespace deluge::string {
12
14std::string fromInt(int32_t number, size_t min_num_digits = 1);
15std::string fromFloat(float number, int32_t precision);
16std::string fromSlot(int32_t slot, int32_t sub_slot, size_t min_num_digits = 1);
17std::string fromNoteCode(int32_t noteCode, size_t* getLengthWithoutDot = nullptr, bool appendOctaveNo = true);
18
19} // namespace deluge::string