forked from teamnwah/openmw-tes3coop
Rename variable to not show up in search for "TODO" comments.
This commit is contained in:
parent
3879ce6ac1
commit
304277429f
1 changed files with 6 additions and 6 deletions
|
@ -20,12 +20,12 @@ namespace
|
|||
{
|
||||
size_t i = 0;
|
||||
unsigned long unicode;
|
||||
size_t todo;
|
||||
size_t numbytes;
|
||||
unsigned char ch = utf8[i++];
|
||||
if (ch <= 0x7F)
|
||||
{
|
||||
unicode = ch;
|
||||
todo = 0;
|
||||
numbytes = 0;
|
||||
}
|
||||
else if (ch <= 0xBF)
|
||||
{
|
||||
|
@ -34,23 +34,23 @@ namespace
|
|||
else if (ch <= 0xDF)
|
||||
{
|
||||
unicode = ch&0x1F;
|
||||
todo = 1;
|
||||
numbytes = 1;
|
||||
}
|
||||
else if (ch <= 0xEF)
|
||||
{
|
||||
unicode = ch&0x0F;
|
||||
todo = 2;
|
||||
numbytes = 2;
|
||||
}
|
||||
else if (ch <= 0xF7)
|
||||
{
|
||||
unicode = ch&0x07;
|
||||
todo = 3;
|
||||
numbytes = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw std::logic_error("not a UTF-8 string");
|
||||
}
|
||||
for (size_t j = 0; j < todo; ++j)
|
||||
for (size_t j = 0; j < numbytes; ++j)
|
||||
{
|
||||
unsigned char ch = utf8[i++];
|
||||
if (ch < 0x80 || ch > 0xBF)
|
||||
|
|
Loading…
Reference in a new issue