| 40 | /// @brief Formats the given StringView against args, appending to destination contents |
| 41 | template <typename... Types> |
| 42 | [[nodiscard]] bool append(StringView fmt, Types&&... args) |
| 43 | { |
| 44 | // It's ok parsing format string '{' and '}' both for utf8 and ascii with StringIteratorASCII |
| 45 | // because on a valid UTF8 string, these chars are unambiguously recognizable |
| 46 | StringFormatOutput sfo(encoding, *buffer); |
| 47 | return StringFormat<StringIteratorASCII>::format(sfo, fmt, forward<Types>(args)...); |
| 48 | } |
| 49 | |
| 50 | /// @brief Appends StringView to destination buffer |
| 51 | /// @param str StringView to append to destination buffer |