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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
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; |
|
|
|