Page 1 of 1

"Rename Local Variable" don't work with multibyte comments

Posted: Fri Jun 21, 2013 2:35 am
by NilC
Simple example

Code: Select all

#include <stdio.h>

int main(int argc, char **argv)
{
	//Я
	int y = 22;
	printf("%d\n", y);
	return 0;
}
"Я" - 2 bytes UTF8 char in russian language. If we trying rename "y" - we got message "No matches were found". Error simce to be somewhere in cppscanner. Sometimes its using UTF8Length of string, sometimes per-bytes length.

Re: "Rename Local Variable" don't work with multibyte commen

Posted: Fri Jun 21, 2013 3:18 am
by NilC
Fast and dirty fix