From 32e14551a90e85000e41b3f0445d34d58a1431e4 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 10 Sep 2025 22:12:22 +0200 Subject: Add unicode general category lookup Generate the lookup tables from UnicodeData.txt, do to that, add gen_ugc, which uses csv, buffers, line, io and other modules to do the job. --- src/str.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/str.hh (limited to 'src/str.hh') diff --git a/src/str.hh b/src/str.hh new file mode 100644 index 0000000..58d5d32 --- /dev/null +++ b/src/str.hh @@ -0,0 +1,18 @@ +#ifndef STR_HH +#define STR_HH + +#include +#include + +namespace str { + +void split(std::string_view str, std::vector& out, + char separator = ' ', bool keep_empty = false); + +[[nodiscard]] std::vector split(std::string_view str, + char separator = ' ', + bool keep_empty = false); + +} // namespace str + +#endif // STR_HH -- cgit v1.3