diff options
author | 2018-11-05 19:11:18 +0100 | |
---|---|---|
committer | 2018-11-05 19:11:18 +0100 | |
commit | 13247311f650d2190ca50f05f2879c63a3ad0b6b (patch) | |
tree | 565cf81b012b0879a1ef304c955908ea016d2dc6 /src/lib/util/unicode.cpp | |
parent | 884465327b05bdbc0eae9894d4b84744a8ab5567 (diff) |
Renamed flipendian -> swapendian, as I spent minutes trying to find the functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw
Diffstat (limited to 'src/lib/util/unicode.cpp')
-rw-r--r-- | src/lib/util/unicode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/unicode.cpp b/src/lib/util/unicode.cpp index bd0414a4612..5151a1e101d 100644 --- a/src/lib/util/unicode.cpp +++ b/src/lib/util/unicode.cpp @@ -198,9 +198,9 @@ int uchar_from_utf16f(char32_t *uchar, const char16_t *utf16char, size_t count) { char16_t buf[2] = {0}; if (count > 0) - buf[0] = flipendian_int16(utf16char[0]); + buf[0] = swapendian_int16(utf16char[0]); if (count > 1) - buf[1] = flipendian_int16(utf16char[1]); + buf[1] = swapendian_int16(utf16char[1]); return uchar_from_utf16(uchar, buf, count); } @@ -348,9 +348,9 @@ int utf16f_from_uchar(char16_t *utf16string, size_t count, char32_t uchar) rc = utf16_from_uchar(buf, count, uchar); if (rc >= 1) - utf16string[0] = flipendian_int16(buf[0]); + utf16string[0] = swapendian_int16(buf[0]); if (rc >= 2) - utf16string[1] = flipendian_int16(buf[1]); + utf16string[1] = swapendian_int16(buf[1]); return rc; } |