From 219bf21ef68bab598416c79ee2222593fa8c9080 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Wed, 11 Jun 2014 16:48:02 -0400 Subject: [PATCH] Style fixes to Locale Kit, focus on docs. --- headers/os/locale/UnicodeChar.h | 14 +++++++------- src/kits/locale/UnicodeChar.cpp | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/headers/os/locale/UnicodeChar.h b/headers/os/locale/UnicodeChar.h index 3031866aaf..9f68d7443e 100644 --- a/headers/os/locale/UnicodeChar.h +++ b/headers/os/locale/UnicodeChar.h @@ -349,12 +349,12 @@ class BUnicodeChar { static int32 DigitValue(uint32 c); static unicode_east_asian_width EastAsianWidth(uint32 c); - static void ToUTF8(uint32 c, char **out); - static uint32 FromUTF8(const char **in); - static uint32 FromUTF8(const char *in); + static void ToUTF8(uint32 c, char** out); + static uint32 FromUTF8(const char** in); + static uint32 FromUTF8(const char* in); - static size_t UTF8StringLength(const char *str); - static size_t UTF8StringLength(const char *str, size_t maxLength); + static size_t UTF8StringLength(const char* string); + static size_t UTF8StringLength(const char* string, size_t maxLength); private: BUnicodeChar(); @@ -362,9 +362,9 @@ class BUnicodeChar { inline uint32 -BUnicodeChar::FromUTF8(const char *in) +BUnicodeChar::FromUTF8(const char* in) { - const char *string = in; + const char* string = in; return FromUTF8(&string); } diff --git a/src/kits/locale/UnicodeChar.cpp b/src/kits/locale/UnicodeChar.cpp index bdb032c061..da476c3aa3 100644 --- a/src/kits/locale/UnicodeChar.cpp +++ b/src/kits/locale/UnicodeChar.cpp @@ -241,7 +241,7 @@ BUnicodeChar::EastAsianWidth(uint32 c) void -BUnicodeChar::ToUTF8(uint32 c, char **out) +BUnicodeChar::ToUTF8(uint32 c, char** out) { int i = 0; U8_APPEND_UNSAFE(*out, i, c); @@ -250,7 +250,7 @@ BUnicodeChar::ToUTF8(uint32 c, char **out) uint32 -BUnicodeChar::FromUTF8(const char **in) +BUnicodeChar::FromUTF8(const char** in) { int i = 0; uint32 c = 0; @@ -262,11 +262,11 @@ BUnicodeChar::FromUTF8(const char **in) size_t -BUnicodeChar::UTF8StringLength(const char *str) +BUnicodeChar::UTF8StringLength(const char* string) { size_t len = 0; - while (*str) { - FromUTF8(&str); + while (*string) { + FromUTF8(&string); len++; } return len; @@ -274,11 +274,11 @@ BUnicodeChar::UTF8StringLength(const char *str) size_t -BUnicodeChar::UTF8StringLength(const char *str, size_t maxLength) +BUnicodeChar::UTF8StringLength(const char* string, size_t maxLength) { size_t len = 0; - while (len < maxLength && *str) { - FromUTF8(&str); + while (len < maxLength && *string) { + FromUTF8(&string); len++; } return len;