-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Base.transcode to replace utf8to16 and utf16to8 #16974
Base.transcode to replace utf8to16 and utf16to8 #16974
Conversation
Why not, but it doesn't sound like a very general definition either: is it supposed to support only conversions between Unicode encodings? A really general method would also need to take information about source and destination encodings instead of inferring it from the input integer size. |
It's not meant to be general or even used outside of simple calls to C APIs. Having this be generic instead of having the type implicit as part of the name is helpful when implementing conversion to and from Cwstring without the WString type, which I'm working on removing (deprecating). |
…ing, x) and transcode(T, ::String) convenience methods
…ing, x) and transcode(T, ::String) convenience methods
…ing, x) and transcode(T, ::String) convenience methods
…ing, x) and transcode(T, ::String) convenience methods
…ing, x) and transcode(T, ::String) convenience methods
* export and document transcode from #16974, add transcode(String, x) and transcode(T, ::String) convenience methods * docs * support UTF-32 in transcode * don't use splatting for UTF-32 to String conversion * typo * eliminate method ambiguities * re-run genstdlib * doc clarification * typo
* export and document transcode from JuliaLang#16974, add transcode(String, x) and transcode(T, ::String) convenience methods * docs * support UTF-32 in transcode * don't use splatting for UTF-32 to String conversion * typo * eliminate method ambiguities * re-run genstdlib * doc clarification * typo
No description provided.