From ad26d98d0fbb3e7c4e519df8110dab637c361d08 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 29 Oct 2015 23:14:46 -0400 Subject: [PATCH] UTF8: Cleanup --- src/utf8.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utf8.cpp b/src/utf8.cpp index 1e2276e30..58c70a425 100644 --- a/src/utf8.cpp +++ b/src/utf8.cpp @@ -79,7 +79,6 @@ unsigned int utf8_next_char (const std::string& input, std::string::size_type& i // How many bytes in the sequence? int length = utf8_sequence (input[i]); - i += length; // 0xxxxxxx -> 0xxxxxxx @@ -272,7 +271,7 @@ unsigned int utf8_text_width (const std::string& str) const std::string utf8_substr ( const std::string& input, unsigned int start, - unsigned int length /*=0*/) + unsigned int length /* = 0 */) { // Find the starting index. std::string::size_type index_start = 0;