diff liboctave/system/lo-sysdep.h @ 25514:c63f67d87b4a

Add C++ functions to convert between UTF-8 string and wstring (bug #49118). * lo-sysdep.[cc,h]: Add functions "u8_to_wstring" and "u8_from_wstring" for conversion between utf-8 strings and wide character strings.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 28 Jun 2018 14:39:46 +0200
parents 5960fd1b56f1
children 8945a6a6c0eb
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.h	Wed Jun 27 21:01:58 2018 +0200
+++ b/liboctave/system/lo-sysdep.h	Thu Jun 28 14:39:46 2018 +0200
@@ -40,6 +40,10 @@
     extern std::string getcwd (void);
 
     extern int chdir (const std::string&);
+
+    extern std::wstring u8_to_wstring (const std::string&);
+
+    extern std::string u8_from_wstring (const std::wstring&);
   }
 }