Changeset View
Changeset View
Standalone View
Standalone View
source/gui/GUIStringConversions.cpp
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | |||||
template <> | template <> | ||||
bool CGUI::ParseString<CStr>(const CGUI* UNUSED(pGUI), const CStrW& Value, CStr& Output) | bool CGUI::ParseString<CStr>(const CGUI* UNUSED(pGUI), const CStrW& Value, CStr& Output) | ||||
{ | { | ||||
Output = Value.ToUTF8(); | Output = Value.ToUTF8(); | ||||
return true; | return true; | ||||
} | } | ||||
template <> | template <> | ||||
bool CGUI::ParseString<CStrIntern>(const CGUI* UNUSED(pGUI), const CStrW& Value, CStrIntern& Output) | |||||
{ | |||||
Output = CStrIntern(Value.ToUTF8()); | |||||
return true; | |||||
} | |||||
template <> | |||||
bool CGUI::ParseString<CStrW>(const CGUI* UNUSED(pGUI), const CStrW& Value, CStrW& Output) | bool CGUI::ParseString<CStrW>(const CGUI* UNUSED(pGUI), const CStrW& Value, CStrW& Output) | ||||
{ | { | ||||
Output = Value; | Output = Value; | ||||
return true; | return true; | ||||
} | } | ||||
template <> | template <> | ||||
bool CGUI::ParseString<CGUISpriteInstance>(const CGUI* UNUSED(pGUI), const CStrW& Value, CGUISpriteInstance& Output) | bool CGUI::ParseString<CGUISpriteInstance>(const CGUI* UNUSED(pGUI), const CStrW& Value, CGUISpriteInstance& Output) | ||||
Show All 16 Lines |
Wildfire Games · Phabricator