Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
convert.hpp File Reference
#include <string>
#include <boost/locale/encoding_utf.hpp>
+ Include dependency graph for convert.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  boost
 
namespace  boost::nowide
 This namespace includes implementation of the standard library functios such that they accept UTF-8 strings on Windows. On other platforms it is just an alias of std namespace (i.e. not on Windows)
 

Functions

template<typename CharOut , typename CharIn >
CharOut * boost::nowide::basic_convert (CharOut *buffer, size_t buffer_size, CharIn const *source_begin, CharIn const *source_end)
 Template function that converts a buffer of UTF sequences in range [source_begin,source_end) to the output buffer of size buffer_size.
 
char * boost::nowide::narrow (char *output, size_t output_size, wchar_t const *source)
 Convert NULL terminated UTF source string to NULL terminated output string of size at most output_size (including NULL)
 
char * boost::nowide::narrow (char *output, size_t output_size, wchar_t const *begin, wchar_t const *end)
 Convert UTF text in range [begin,end) to NULL terminated output string of size at most output_size (including NULL)
 
wchar_t * boost::nowide::widen (wchar_t *output, size_t output_size, char const *source)
 Convert NULL terminated UTF source string to NULL terminated output string of size at most output_size (including NULL)
 
wchar_t * boost::nowide::widen (wchar_t *output, size_t output_size, char const *begin, char const *end)
 Convert UTF text in range [begin,end) to NULL terminated output string of size at most output_size (including NULL)
 
std::string boost::nowide::narrow (wchar_t const *s)
 Convert between Wide - UTF-16/32 string and UTF-8 string.
 
std::wstring boost::nowide::widen (char const *s)
 Convert between UTF-8 and UTF-16 string, implemented only on Windows platform.
 
std::string boost::nowide::narrow (std::wstring const &s)
 Convert between Wide - UTF-16/32 string and UTF-8 string.
 
std::wstring boost::nowide::widen (std::string const &s)
 Convert between UTF-8 and UTF-16 string, implemented only on Windows platform.