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

Fix #11140 Added is_valid_utf32 #11195

Merged
merged 1 commit into from
May 8, 2015

Conversation

ScottPJones
Copy link
Contributor

Added a new function, which corresponds to the is_valid_ascii, is_valid_utf8, is_valid_utf16 functions.
Added some simple testing (same as what was done for the other is_valid_* functions).
[more should be done in the future]

jakebolewski added a commit that referenced this pull request May 8, 2015
@jakebolewski jakebolewski merged commit dfc2cea into JuliaLang:master May 8, 2015
@ScottPJones ScottPJones deleted the spj/validutf32 branch May 8, 2015 13:00
@StefanKarpinski
Copy link
Member

This cries out for a more generic interface but this works for now and will be easy to deprecate.

@ScottPJones
Copy link
Contributor Author

Maybe something like: is_valid(type, value)?
is_valid(Char, integer) instead of is_valid_char, is_valid(ASCIIString, Vector{UInt8}), etc.?

@quinnj
Copy link
Member

quinnj commented May 8, 2015

isvalid

@ScottPJones
Copy link
Contributor Author

Sounds good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants