mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
fix: enhance the tokenizer's handing of Unicode (#120)
This commit is contained in:
1 parent
9842a3f819
commit
8f6b4a39d6
6 files changed
+43830
-80117
No files matched your search
@@ -14,6 +14,10 @@ void replace_all_chars(std::string& str, char target, char replacement);
|
||||
bool file_exists(const std::string& filename);
|
||||
bool is_directory(const std::string& path);
|
||||
|
||||
std::u32string utf8_to_utf32(const std::string& utf8_str);
|
||||
std::string utf32_to_utf8(const std::u32string& utf32_str);
|
||||
std::u32string unicode_value_to_utf32(int unicode_value);
|
||||
|
||||
std::string basename(const std::string& path);
|
||||
|
||||
std::string path_join(const std::string& p1, const std::string& p2);
|
||||
|
||||
Reference in new issue
Block a user