UTF8: Cleanup
This commit is contained in:
@@ -79,7 +79,6 @@ unsigned int utf8_next_char (const std::string& input, std::string::size_type& i
|
|||||||
|
|
||||||
// How many bytes in the sequence?
|
// How many bytes in the sequence?
|
||||||
int length = utf8_sequence (input[i]);
|
int length = utf8_sequence (input[i]);
|
||||||
|
|
||||||
i += length;
|
i += length;
|
||||||
|
|
||||||
// 0xxxxxxx -> 0xxxxxxx
|
// 0xxxxxxx -> 0xxxxxxx
|
||||||
@@ -272,7 +271,7 @@ unsigned int utf8_text_width (const std::string& str)
|
|||||||
const std::string utf8_substr (
|
const std::string utf8_substr (
|
||||||
const std::string& input,
|
const std::string& input,
|
||||||
unsigned int start,
|
unsigned int start,
|
||||||
unsigned int length /*=0*/)
|
unsigned int length /* = 0 */)
|
||||||
{
|
{
|
||||||
// Find the starting index.
|
// Find the starting index.
|
||||||
std::string::size_type index_start = 0;
|
std::string::size_type index_start = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user