Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range or index out of bounds #4

Open
castus opened this issue Feb 15, 2013 · 4 comments
Open

Range or index out of bounds #4

castus opened this issue Feb 15, 2013 · 4 comments

Comments

@castus
Copy link

castus commented Feb 15, 2013

Hi,

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.

@nastyj
Copy link

nastyj commented Jul 12, 2013

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.

@castus
Copy link
Author

castus commented Jul 19, 2013

Unfortunately no, sorry. I didn't use it in my project at all.

@brovador
Copy link

brovador commented Sep 2, 2013

Same in spanish

@jlampa
Copy link

jlampa commented Apr 28, 2014

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants