indexOf() accented insentivite

Talk about add-ons and extension development.
Post Reply
poleta33
Posts: 120
Joined: October 14th, 2004, 2:06 pm

indexOf() accented insentivite

Post by poleta33 »

Hi

with an example it will be easier to understand : I want that the search "ö" in the string "oooo" returns true (and that the search "o" in the string "ööööö" returns also true)

I've seen the nsICollationFactory but it allows only to make sorts...
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: indexOf() accented insentivite

Post by gorhill »

indexOf() does not return true or false, it returns the index at which the substring is found, or -1 if the substring cannot be found. Hence searching for "ö" in the string "oooo" does return -1, as expected.
poleta33
Posts: 120
Joined: October 14th, 2004, 2:06 pm

Re: indexOf() accented insentivite

Post by poleta33 »

yes I know... try to make better : I want that searching "o" or "ö" inside a string gives the same result
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: indexOf() accented insentivite

Post by gorhill »

Ok I misunderstood your question. I have no clue whether what you ask is possible.
Post Reply