WxUtils: add WxStrToUL
This commit is contained in:
parent
7d509a7a94
commit
9867677211
|
@ -531,3 +531,10 @@ wxString StrToWxStr(const std::string& str)
|
||||||
// return wxString::FromUTF8Unchecked(str.c_str());
|
// return wxString::FromUTF8Unchecked(str.c_str());
|
||||||
return wxString::FromUTF8(str.c_str());
|
return wxString::FromUTF8(str.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long WxStrToUL(const wxString& str)
|
||||||
|
{
|
||||||
|
unsigned long value = 0;
|
||||||
|
str.ToULong(&value);
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
|
@ -145,3 +145,4 @@ wxImage ScaleImage(wxImage image, double source_scale_factor = 1.0,
|
||||||
|
|
||||||
std::string WxStrToStr(const wxString& str);
|
std::string WxStrToStr(const wxString& str);
|
||||||
wxString StrToWxStr(const std::string& str);
|
wxString StrToWxStr(const std::string& str);
|
||||||
|
unsigned long WxStrToUL(const wxString& str);
|
||||||
|
|
Loading…
Reference in New Issue