mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
UTF8: Cleanup
This commit is contained in:
parent
de8c7d230f
commit
ad26d98d0f
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue