Skip to content

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

Description

@lhasiuk

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions