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

wrap double u_getNumericValue(UChar32 c) #295

Open
gagolews opened this issue Apr 21, 2018 · 0 comments
Open

wrap double u_getNumericValue(UChar32 c) #295

gagolews opened this issue Apr 21, 2018 · 0 comments

Comments

@gagolews
Copy link
Owner

gagolews commented Apr 21, 2018

Question: This is a per-character function; How to vectorise it?

From the manual: https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/uchar_8h.html

Get the numeric value for a Unicode code point as defined in the Unicode Character Database.

A "double" return type is necessary because some numeric values are fractions, negative, or too large for int32_t.

For characters without any numeric values in the Unicode Character Database, this function will return U_NO_NUMERIC_VALUE. Note: This is different from the Unicode Standard which specifies NaN as the default value. (NaN is not available on all platforms.)

Similar to java.lang.Character.getNumericValue(), but u_getNumericValue() also supports negative values, large values, and fractions, while Java's getNumericValue() returns values 10..35 for ASCII letters.

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

No branches or pull requests

1 participant