Browse Source

Merge pull request #21 from glebm/fix-remove-invalid

replace_invalid: Replace final incomplete sequence
master
nemtrif 5 years ago
committed by GitHub
parent
commit
d8b09b3019
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      source/utf8/checked.h

4
source/utf8/checked.h

@ -107,7 +107,9 @@ namespace utf8
*out++ = *it;
break;
case internal::NOT_ENOUGH_ROOM:
throw not_enough_room();
out = utf8::append (replacement, out);
start = end;
break;
case internal::INVALID_LEAD:
out = utf8::append (replacement, out);
++start;

Loading…
Cancel
Save