Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: third_party/WebKit/Source/wtf/text/UTF8.h

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextPosition.cpp ('k') | third_party/WebKit/Source/wtf/text/UTF8.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/UTF8.h
diff --git a/third_party/WebKit/Source/wtf/text/UTF8.h b/third_party/WebKit/Source/wtf/text/UTF8.h
index eda2633409ac290fdf75d8fac637f463ae78ddad..cb2af936e3bcd97fa49cf413baf2a61b81f2e456 100644
--- a/third_party/WebKit/Source/wtf/text/UTF8.h
+++ b/third_party/WebKit/Source/wtf/text/UTF8.h
@@ -33,10 +33,10 @@ namespace WTF {
namespace Unicode {
typedef enum {
- conversionOK, // conversion successful
- sourceExhausted, // partial character in source, but hit end
- targetExhausted, // insuff. room in target for conversion
- sourceIllegal // source sequence is illegal/malformed
+ conversionOK, // conversion successful
+ sourceExhausted, // partial character in source, but hit end
+ targetExhausted, // insuff. room in target for conversion
+ sourceIllegal // source sequence is illegal/malformed
} ConversionResult;
// These conversion functions take a "strict" argument. When this flag is set to
@@ -53,24 +53,40 @@ typedef enum {
// the replacement character; otherwise (when the flag is set to strict) they
// constitute an error.
-WTF_EXPORT ConversionResult convertUTF8ToUTF16(
- const char** sourceStart, const char* sourceEnd,
- UChar** targetStart, UChar* targetEnd, bool* isSourceAllASCII = 0, bool strict = true);
+WTF_EXPORT ConversionResult convertUTF8ToUTF16(const char** sourceStart,
+ const char* sourceEnd,
+ UChar** targetStart,
+ UChar* targetEnd,
+ bool* isSourceAllASCII = 0,
+ bool strict = true);
-WTF_EXPORT ConversionResult convertLatin1ToUTF8(
- const LChar** sourceStart, const LChar* sourceEnd,
- char** targetStart, char* targetEnd);
+WTF_EXPORT ConversionResult convertLatin1ToUTF8(const LChar** sourceStart,
+ const LChar* sourceEnd,
+ char** targetStart,
+ char* targetEnd);
-WTF_EXPORT ConversionResult convertUTF16ToUTF8(
- const UChar** sourceStart, const UChar* sourceEnd,
- char** targetStart, char* targetEnd, bool strict = true);
+WTF_EXPORT ConversionResult convertUTF16ToUTF8(const UChar** sourceStart,
+ const UChar* sourceEnd,
+ char** targetStart,
+ char* targetEnd,
+ bool strict = true);
-WTF_EXPORT unsigned calculateStringHashAndLengthFromUTF8MaskingTop8Bits(const char* data, const char* dataEnd, unsigned& dataLength, unsigned& utf16Length);
+WTF_EXPORT unsigned calculateStringHashAndLengthFromUTF8MaskingTop8Bits(
+ const char* data,
+ const char* dataEnd,
+ unsigned& dataLength,
+ unsigned& utf16Length);
-WTF_EXPORT bool equalUTF16WithUTF8(const UChar* a, const UChar* aEnd, const char* b, const char* bEnd);
-WTF_EXPORT bool equalLatin1WithUTF8(const LChar* a, const LChar* aEnd, const char* b, const char* bEnd);
+WTF_EXPORT bool equalUTF16WithUTF8(const UChar* a,
+ const UChar* aEnd,
+ const char* b,
+ const char* bEnd);
+WTF_EXPORT bool equalLatin1WithUTF8(const LChar* a,
+ const LChar* aEnd,
+ const char* b,
+ const char* bEnd);
-} // namespace Unicode
-} // namespace WTF
+} // namespace Unicode
+} // namespace WTF
-#endif // WTF_UTF8_h
+#endif // WTF_UTF8_h
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextPosition.cpp ('k') | third_party/WebKit/Source/wtf/text/UTF8.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698