pegkit icon indicating copy to clipboard operation
pegkit copied to clipboard

Assertion failure in - (PKTokenizerState *)nextTokenizerStateFor:(PKUniChar)c tokenizer:(PKTokenizer *)t

Open lhasiuk opened this issue 4 years ago • 0 comments

The first line in this method is: NSParameterAssert(c < STATE_COUNT);

Since 'c' is an int32_t value holding a Unicode character and STATE_COUNT is 256, this line is easily triggered when parsing strings that contain characters that have higher Unicode values. I think that this line is an error, and commenting it out solves the issue for me. Can you explain why this line is important and how I can avoid triggering it? If it represents a bug, is there any possibility for a new release that fixes the problem?

lhasiuk avatar Mar 21 '20 17:03 lhasiuk