Skip to content

Scanner Generation - Downcasting from int to char #4

@Ynscription

Description

@Ynscription

The generated function of the Scanner AddCh() downcasts the int ch where the current character is stored with UTF-32 encoding to a 16 bit char that expects UTF-16 encoding.

This means that glyphs that require surrogate UTF-16 pairs are not being scanned corectly.

image

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