Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarText.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-23 13:27:57 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-23 13:27:57 +1000
commitdd677772382c3f63a5f2d331c6227e135e01db3c (patch)
tree90c9f3728c64438c5127d1b9699430eaf004c903 /source/core/StarText.hpp
parentc24fc5aeaf0e94bc6148c6d1bfd7a5643affc808 (diff)
Fix text after an unclosed ^ tag not wrapping
Diffstat (limited to 'source/core/StarText.hpp')
-rw-r--r--source/core/StarText.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarText.hpp b/source/core/StarText.hpp
index ff6880c..15158ce 100644
--- a/source/core/StarText.hpp
+++ b/source/core/StarText.hpp
@@ -30,6 +30,8 @@ namespace Text {
unsigned char const EndEsc = ';';
unsigned char const CmdEsc = '^';
unsigned char const SpecialCharLimit = ' ';
+ extern std::string const AllEsc;
+ extern std::string const AllEscEnd;
String stripEscapeCodes(String const& s);
inline bool isEscapeCode(Utf32Type c) { return c == CmdEsc || c == StartEsc; }