FindString ignoring #PB_StringNoCase
Posted: Mon Sep 12, 2016 10:22 am
Case insensitive searching appears broken
Code:
Output:
SpiderBasic 1.40 on OS X 10.11.6
NOTE: This is also happening in PureBasic (5.50) , i.e. the same output is shown. Have I misunderstood the flag or is this a bug in both tools?
Code:
Code: Select all
Define a$ = "Hello World"
Debug "world: " + Str(FindString(a$, "world", #PB_String_NoCase))
Debug "World: " + Str(FindString(a$, "World", #PB_String_NoCase))
Code: Select all
world: 0
World: 7
NOTE: This is also happening in PureBasic (5.50) , i.e. the same output is shown. Have I misunderstood the flag or is this a bug in both tools?