|
|
@@ -39,7 +39,7 @@ void Core::StringBase::toString(
|
|
|
}
|
|
|
|
|
|
template<typename T, typename... Args>
|
|
|
-static void toBuffer(char* s, size_t n, T t, Args&&... args) {
|
|
|
+static void toBuffer(char* s, size_t n, T t, Args&&... args) noexcept {
|
|
|
std::to_chars_result r = std::to_chars(s, s + n, t, args...);
|
|
|
if(r.ec == std::errc()) {
|
|
|
*r.ptr = '\0';
|
|
|
@@ -138,7 +138,7 @@ void Core::StringBase::print() const noexcept {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Core::StringBase::addChar(char c) {
|
|
|
+void Core::StringBase::addChar(char c) noexcept {
|
|
|
if(index + 1 < capacity) {
|
|
|
buffer[index] = c;
|
|
|
buffer[index + 1] = '\0';
|