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

Support compile-time character encoding parameterization #22

Open
jwtowner opened this issue Jun 22, 2024 · 0 comments
Open

Support compile-time character encoding parameterization #22

jwtowner opened this issue Jun 22, 2024 · 0 comments

Comments

@jwtowner
Copy link
Owner

UTF-8 support is not always needed. Often times, ASCII is all you need. Being able to parameterize the parser at compile time with the desired encoding would improve performance and potentially eliminate pulling in the Unicode tables. This could be highly desirable for future compile-time parsing scenarios in C++23 and beyond.

Investigate turning the lug::parser class into a lug::basic_parser template that takes the character encoding class as a template. At least support for ASCII and UTF-8 character encodings should be supported. A type alias of lug::parser can then be introduced to maintain the existing behavior with full Unicode support.

This feature might also make it easier to perform byte level parsing of binary file formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant