Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/tinyutf8/tinyutf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2374,10 +2374,11 @@ namespace tiny_utf8
bool starts_with( const value_type (&str)[LITLEN] ) const noexcept {
size_type str_len = str[LITLEN-1] ? LITLEN : LITLEN-1;
const_iterator it = cbegin(), end = cend();
value_type const* str_ptr = str;
while( it != end && str_len ){
if( *it != *str )
return false;
++it, ++str, --str_len;
++it, ++str_ptr, --str_len;
}
return !str_len;
}
Expand Down Expand Up @@ -2760,7 +2761,7 @@ template<typename V, typename D, typename A>
std::istream& operator>>( std::istream& stream , tiny_utf8::basic_string<V, D, A>& str ) noexcept(TINY_UTF8_NOEXCEPT) {
std::string tmp;
stream >> tmp;
str = move(tmp);
str = std::move(tmp);
return stream;
}

Expand Down