File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ namespace cpp
99 static bool isEncoded (const String& string);
1010
1111 static int getByteCount (const null&);
12- static int getByteCount (const char32_t & codepoint);
12+ static int getByteCount (char32_t codepoint);
1313 static int64_t getByteCount (const String& string);
1414
1515 static int getCharCount (const null&);
16- static int getCharCount (const char32_t & codepoint);
16+ static int getCharCount (char32_t codepoint);
1717 static int64_t getCharCount (const String& string);
1818
1919 static int encode (const null&, const cpp::marshal::View<uint8_t >& buffer);
20- static int encode (const char32_t & codepoint, const cpp::marshal::View<uint8_t >& buffer);
20+ static int encode (char32_t codepoint, const cpp::marshal::View<uint8_t >& buffer);
2121 static int64_t encode (const String& string, const cpp::marshal::View<uint8_t >& buffer);
2222
2323 static char32_t codepoint (const cpp::marshal::View<uint8_t >& buffer);
Original file line number Diff line number Diff line change @@ -7,16 +7,17 @@ namespace cpp
77 struct Utf8 final
88 {
99 static int getByteCount (const null&);
10- static int getByteCount (const char32_t & codepoint);
10+ static int getByteCount (char32_t codepoint);
1111 static int64_t getByteCount (const String& string);
1212
1313 static int getCharCount (const null&);
14- static int getCharCount (const char32_t & codepoint);
14+ static int getCharCount (char32_t codepoint);
1515 static int64_t getCharCount (const String& string);
1616
1717 static int encode (const null&, const cpp::marshal::View<uint8_t >& buffer);
18- static int encode (const char32_t & codepoint, const cpp::marshal::View<uint8_t >& buffer);
18+ static int encode (char32_t codepoint, const cpp::marshal::View<uint8_t >& buffer);
1919 static int64_t encode (const String& string, const cpp::marshal::View<uint8_t >& buffer);
20+ static Array<uint8_t > encode (const String& string);
2021
2122 static char32_t codepoint (const cpp::marshal::View<uint8_t >& buffer);
2223 static String decode (const cpp::marshal::View<uint8_t >& buffer);
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments