Browse Source

Quickly add ustring_to_mbstring basic_string alias

master
Jessica James 3 years ago
parent
commit
4ab714e5ab
  1. 5
      src/include/jessilib/unicode.hpp

5
src/include/jessilib/unicode.hpp

@ -244,6 +244,11 @@ std::pair<bool, std::string> ustring_to_mbstring(std::basic_string_view<CharT> i
return result;
}
template<typename CharT>
std::pair<bool, std::string> ustring_to_mbstring(const std::basic_string<CharT>& in_string) {
return ustring_to_mbstring(std::basic_string_view<CharT>{ in_string });
}
/**
* Searches a string for a specified substring
*

Loading…
Cancel
Save