OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::internal::format Namespace Reference

Classes

struct  utf8_buffer

Functions

template<typename T>
T && cook (T &&arg)
std::string format_recursive (boost::format &message)
template<typename TValue, typename... TArgs>
std::string format_recursive (boost::format &message, TValue &&arg, TArgs &&... args)
const utf8_buffer cook (const wxString &arg)
const utf8_buffer cook (wxString &arg)
const utf8_buffer cook (wxString &&arg)

Class Documentation

◆ Slic3r::internal::format::utf8_buffer

struct Slic3r::internal::format::utf8_buffer
Class Members
wxScopedCharBuffer data

Function Documentation

◆ cook() [1/4]

const utf8_buffer Slic3r::internal::format::cook ( const wxString & arg)
inline
58 {
59 return utf8_buffer { arg.ToUTF8() };
60 }

◆ cook() [2/4]

template<typename T>
T && Slic3r::internal::format::cook ( T && arg)
inline
26 {
27 return std::forward<T>(arg);
28 }

Referenced by format_recursive().

Here is the caller graph for this function:

◆ cook() [3/4]

const utf8_buffer Slic3r::internal::format::cook ( wxString && arg)
inline
66 {
67 return utf8_buffer{ arg.ToUTF8() };
68 }

◆ cook() [4/4]

const utf8_buffer Slic3r::internal::format::cook ( wxString & arg)
inline
63 {
64 return utf8_buffer { arg.ToUTF8() };
65 }

◆ format_recursive() [1/2]

std::string Slic3r::internal::format::format_recursive ( boost::format & message)
inline
31 {
32 return message.str();
33 }

Referenced by Slic3r::format(), Slic3r::format(), format_recursive(), Slic3r::GUI::format_wxstr(), and Slic3r::GUI::format_wxstr().

Here is the caller graph for this function:

◆ format_recursive() [2/2]

template<typename TValue, typename... TArgs>
std::string Slic3r::internal::format::format_recursive ( boost::format & message,
TValue && arg,
TArgs &&... args )
36 {
37 // Format, possibly convert the argument by the "cook" function.
38 message % cook(std::forward<TValue>(arg));
39 return format_recursive(message, std::forward<TArgs>(args)...);
40 }
std::string format_recursive(boost::format &message)
Definition format.hpp:31
T && cook(T &&arg)
Definition format.hpp:26

References cook(), and format_recursive().

Here is the call graph for this function: