-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add char
-based API
#13
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
@mkroening Do we have to improve |
Cp437(Complete, ENCODING_TABLE_CP437, DECODING_TABLE_CP437), | ||
Cp720(Complete, ENCODING_TABLE_CP720, DECODING_TABLE_CP720), | ||
Cp737(Complete, ENCODING_TABLE_CP737, DECODING_TABLE_CP737), | ||
Cp775(Complete, ENCODING_TABLE_CP775, DECODING_TABLE_CP775), | ||
Cp850(Complete, ENCODING_TABLE_CP850, DECODING_TABLE_CP850), | ||
Cp852(Complete, ENCODING_TABLE_CP852, DECODING_TABLE_CP852), | ||
Cp855(Complete, ENCODING_TABLE_CP855, DECODING_TABLE_CP855), | ||
Cp857(Incomplete, ENCODING_TABLE_CP857, DECODING_TABLE_CP857), | ||
Cp858(Complete, ENCODING_TABLE_CP858, DECODING_TABLE_CP858), | ||
Cp860(Complete, ENCODING_TABLE_CP860, DECODING_TABLE_CP860), | ||
Cp861(Complete, ENCODING_TABLE_CP861, DECODING_TABLE_CP861), | ||
Cp862(Complete, ENCODING_TABLE_CP862, DECODING_TABLE_CP862), | ||
Cp863(Complete, ENCODING_TABLE_CP863, DECODING_TABLE_CP863), | ||
Cp864(Incomplete, ENCODING_TABLE_CP864, DECODING_TABLE_CP864), | ||
Cp865(Complete, ENCODING_TABLE_CP865, DECODING_TABLE_CP865), | ||
Cp866(Complete, ENCODING_TABLE_CP866, DECODING_TABLE_CP866), | ||
Cp869(Complete, ENCODING_TABLE_CP869, DECODING_TABLE_CP869), | ||
Cp874(Incomplete, ENCODING_TABLE_CP874, DECODING_TABLE_CP874), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't like to maintain these Complete
/Incomplete
and C[Pp]*
written by hand if possible.
build.rs
automatically generates ENCODING_TABLE_*
and DECODING_TABLE_*
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, so we might be able to move this macro call into build.rs
. Is that what you had in mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that what you had in mind?
Right. write_*
functions are for code generation and you have only to modify (some of) them and maybe generate_tables
.
I wonder if it's possible.
Our main dishes are |
Okay, we can make them private in favor of this API or what did you have in mind?
What do you mean? A user can choose not to use |
Hi Tatsunori,
It's been a while since I have worked on this. I prepared this code more than a year ago, but never got around to submitting it properly.
This API introduces newtypes around
u8
s for working with these code points.Thanks for this crate! :)
Closes #10