It seems not working in my project (or iOS?). I testing in iOS 5 and get this error:
Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString substringWithRange:]: Range or index out of bounds'
Locale is setted as @"pl_PL" and file hyph_pl_PL.dict is added into bundle.
Castus, Did you ever figure out what is going on? In my project when I change my locale to JP (Japan) I also get the exact same error.
Unfortunately no, sorry. I didn't use it in my project at all.
Same in spanish
Try replacing this:
wordLength = strlen(tokenChars);
wordLength = tokenRange.length;