We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b33e8b + 421f6ed commit f9514d2Copy full SHA for f9514d2
utf8-string-lib/utf8_string.cpp
@@ -35,8 +35,11 @@ namespace utf8
35
// -----------------------------------------------------------------------------------------------------------------
36
std::istream& operator>>(std::istream& is, ustring& ustr)
37
{
38
- // TODO: .............................................
39
- throw std::runtime_error("operator >> for utf8::ustring not implemented yet !");
+ std::basic_string<char> tmp{ };
+ is >> tmp;
40
+
41
+ ustr.Copy_With_Metadata_To_Internal_String(tmp.c_str());
42
+ return is;
43
}
44
45
0 commit comments