int skipIncompleteTag(string theText, float pos, int len)
{
- int i = 0, ch = 0;
int tag_start = -1;
if(substring(theText, pos - 1, 1) == "^")
if(isCaretEscaped(theText, pos - 1) || pos >= len)
return 0;
- ch = str2chr(theText, pos);
+ int ch = str2chr(theText, pos);
if(ch >= '0' && ch <= '9')
return 1; // ^[0-9] color code found
else if (ch == 'x')
}
else
{
- for(i = 2; pos - i >= 0 && i <= 4; ++i)
+ for(int i = 2; pos - i >= 0 && i <= 4; ++i)
{
if(substring(theText, pos - i, 2) == "^x")
{