Prusa Slicer 2.6.0
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)
 
std::ostream & operator<< (std::ostream &os, const utf8_buffer &v)
 
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
23 {
24 return utf8_buffer{ arg.ToUTF8() };
25 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
Definition ArrayCwiseUnaryOps.h:57

References arg().

+ Here is the call graph for this function:

◆ cook() [2/4]

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

References arg().

Referenced by format_recursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cook() [3/4]

const utf8_buffer Slic3r::internal::format::cook ( wxString &&  arg)
inline
31 {
32 return utf8_buffer{ arg.ToUTF8() };
33 }

References arg().

+ Here is the call graph for this function:

◆ cook() [4/4]

const utf8_buffer Slic3r::internal::format::cook ( wxString &  arg)
inline
28 {
29 return utf8_buffer{ arg.ToUTF8() };
30 }

References arg().

+ Here is the call graph for this function:

◆ format_recursive() [1/2]

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

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 
)
35 {
36 // Format, possibly convert the argument by the "cook" function.
37 message % cook(std::forward<TValue>(arg));
38 return format_recursive(message, std::forward<TArgs>(args)...);
39 }
std::string format_recursive(boost::format &message)
Definition format.hpp:30
T && cook(T &&arg)
Definition format.hpp:25

References arg(), cook(), and format_recursive().

+ Here is the call graph for this function:

◆ operator<<()

std::ostream & Slic3r::internal::format::operator<< ( std::ostream &  os,
const utf8_buffer v 
)
inline
18 {
19 os << v.data.data();
20 return os;
21 }
wxScopedCharBuffer data
Definition format.hpp:16

References Slic3r::internal::format::utf8_buffer::data.