MozillaZine

indexOf() accented insentivite

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

Post Posted January 30th, 2017, 8:34 am

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: 82
Joined: February 10th, 2015, 8:00 am

Post Posted January 30th, 2017, 8:56 am

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: 114
Joined: October 14th, 2004, 2:06 pm

Post Posted January 30th, 2017, 8:59 am

yes I know... try to make better : I want that searching "o" or "ö" inside a string gives the same result

gorhill
 
Posts: 82
Joined: February 10th, 2015, 8:00 am

Post Posted January 30th, 2017, 10:30 am

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

Return to Extension Development


Who is online

Users browsing this forum: Bing [Bot] and 3 guests