Is there a cross-platform `iswalnum` function for `base::char16`?
10 views
Skip to first unread message
Anton Guryanov
unread,
Sep 26, 2016, 9:22:32 AM9/26/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev
Hi!
I want to use functions from <wctype.h>, but I can't use them with `base::char16` on all platforms, I have to convert the character to `wchar_t` before calling them.
Are there alternatives?
Brett Wilson
unread,
Sep 26, 2016, 11:48:35 AM9/26/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gurya...@gmail.com, Chromium-dev
Normally you would use ICU for this kind of thing. There are a lot of functions to classify character types although I don't know which ones to point you to. You might start by looking at usage in base/i18n/*.