-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: Rename Unicode encoding/decoding operations #2014
Conversation
Hm. The names |
Ah, I'd intended it to read as "the UTF-16 version of code point to code unit translation", but I can see the ambiguity there. |
(It's tempting to moreover suggest replacing
but I haven't actually determined if that's a good suggestion. It does seem more readable.) |
Came here to say what @jmdyck already said: |
I am concerned about saying
Actually, I guess that means So, thoughts on
? |
Yeah, but I think that's a pointless distinction. See Issue #828. (I started a PR to dissolve that distinction, but something stopped me. I'll have another look.) |
5059472
to
3512416
Compare
Force-pushed commits using the names above.
Arguably, but if we do away with it we should do so holistically. We can rename |
- rename UTF16Encoding to CodePointToUTF16CodeUnits - reword some usages of CodePointToUTF16CodeUnits - rename UTF16Encode to CodePointsToString - rename UTF16DecodeSurrogatePair to UTF16SurrogatePairToCodePoint - rename UTF16DecodeString to StringToCodePoints
3512416
to
29fedc2
Compare
- rename UTF16Encoding to CodePointToUTF16CodeUnits - reword some usages of CodePointToUTF16CodeUnits - rename UTF16Encode to CodePointsToString - rename UTF16DecodeSurrogatePair to UTF16SurrogatePairToCodePoint - rename UTF16DecodeString to StringToCodePoints
Fixes #1863 following @domenic's suggestion there. I've also renamed
UTF16DecodeSurrogatePair
toUTF16SurrogatePairToCodePoint
andUTF16DecodeString
toUTF16CodeUnitsToCodePoints
. I'm open to other names; these seemed the clearest.After just renaming, some of the wording became a little strange: "the UTF16CodePointToCodeUnits of a Unicode code point" reads more awkwardly to me than "the UTF16Encoding of a Unicode code point" did. So I rephrased those usages.
cc @jmdyck
EDIT: names changed.