diff options
Diffstat (limited to 'src/slic3r/Utils/ASCIIFolding.hpp')
-rw-r--r-- | src/slic3r/Utils/ASCIIFolding.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/slic3r/Utils/ASCIIFolding.hpp b/src/slic3r/Utils/ASCIIFolding.hpp index 55f56482d..0a4aff3da 100644 --- a/src/slic3r/Utils/ASCIIFolding.hpp +++ b/src/slic3r/Utils/ASCIIFolding.hpp @@ -7,9 +7,13 @@ namespace Slic3r { // If possible, remove accents from accented latin characters. // This function is useful for generating file names to be processed by legacy firmwares. -extern std::string fold_utf8_to_ascii(const char *src); -extern std::string fold_utf8_to_ascii(const std::string &src); +extern std::string fold_utf8_to_ascii(const std::string &src); -}; // namespace Slic3r +// Convert the input UNICODE character to a string of maximum 4 output ASCII characters. +// Return the end of the string written to the output. +// The output buffer must be at least 4 characters long. +extern wchar_t* fold_to_ascii(wchar_t c, wchar_t *out); + +} // namespace Slic3r #endif /* slic3r_ASCIIFolding_hpp_ */ |