summaryrefslogtreecommitdiff
path: root/wx+/string_conv.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/string_conv.h')
-rw-r--r--wx+/string_conv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wx+/string_conv.h b/wx+/string_conv.h
index 65764b1f..b23f6947 100644
--- a/wx+/string_conv.h
+++ b/wx+/string_conv.h
@@ -16,6 +16,14 @@ namespace zen
//conversion between Zstring and wxString
inline wxString toWx(const Zstring& str) { return utf8CvrtTo<wxString>(str); }
inline Zstring toZ(const wxString& str) { return utf8CvrtTo<Zstring>(str); }
+
+inline std::vector<Zstring> toZ(const std::vector<wxString>& strList)
+{
+ std::vector<Zstring> tmp;
+ std::transform(strList.begin(), strList.end(), std::back_inserter(tmp), [](const wxString& str) { return toZ(str); });
+ return tmp;
+}
+
}
#endif // STRINGCONV_H_INCLUDED
bgstack15