Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Range or index out of bounds #4

castus opened this Issue · 4 comments

4 participants



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.

Please help.


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);

with this:

wordLength = tokenRange.length;

in NSString+Hyphenate.m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.