[PATCH v2] vbscript: implement case insensitive comparison functionality in InStr
27 Jul
27 Jul
1:24 p.m.
Hi Dmitry, On 27.07.2020 04:56, Dmitry Kislyuk wrote:
+ for(; ptr+SysStringLen(str2) <= endptr; ptr++) { + if(!memicmp(ptr, str2, len*sizeof(WCHAR))) { + ret = ptr-str1+1; + break; + } + }
memicmp does not operate on Unicode characters. I think that msvcrt does not provide what we need here, but you could use FindStringOrdinal instead. Thanks, Jacek
1968
Age (days ago)
1968
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Kislyuk -
Jacek Caban