[r65] find() system expression

Bugs will be moved here once resolved.

Post » Sat Oct 29, 2011 11:45 pm

find() system expression is not documented.

Moreover, its description is incorrect; source and desired text are swapped.

Finally, it appears to be case insensitive (doesn't tell difference between T and t).
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Fri Nov 04, 2011 3:34 pm

I don't understand - it appears in the expressions panel next to all the other expressions (in the Text category) and appears to be working correctly with the parameters in the correct order. find("Hello world", "world") returns 6 which is correct, no?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Nov 04, 2011 4:34 pm

Oh, I must have confused the meaning of parameters. Sorry about that (note to self: sleep deprivation is bad).

Anyway, I made my own plugin with case sensitive find, so this is not much of an issue anymore :)

Though you may want to add a parameter to toggle case sensitivity.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Feb 26, 2012 11:27 am

+1 on this request!

Find doesn't seem to be case sensitive, which turns out to be a problem when you try to create a bitmap font system that has both upper and lower caps.

Thanks!
B
5
S
1
G
2
Posts: 8
Reputation: 1,271


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 8 guests