]> git.sesse.net Git - casparcg/blobdiff - dependencies64/cef/linux/include/internal/cef_string_types.h
Upgrade CEF to 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81.
[casparcg] / dependencies64 / cef / linux / include / internal / cef_string_types.h
similarity index 94%
rename from dependencies64/cef/include/internal/cef_string_types.h
rename to dependencies64/cef/linux/include/internal/cef_string_types.h
index 7ab6671cbf43a7cdda1df3136567ac279dd62405..06206570992c515bde25b66f4805c17316be9d2e 100644 (file)
 // modification. It is the user's responsibility to provide synchronization if
 // modifying CEF strings from multiple threads.
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "include/internal/cef_build.h"
-#include "include/internal/cef_export.h"
 #include <stddef.h>
 
-// CEF character type definitions. wchar_t is 2 bytes on Windows and 4 bytes on
-// most other platforms.
-
-#if defined(OS_WIN)
-typedef wchar_t char16;
-#else  // !OS_WIN
-typedef unsigned short char16;  // NOLINT (runtime/int)
-#ifndef WCHAR_T_IS_UTF32
-#define WCHAR_T_IS_UTF32
-#endif  // WCHAR_T_IS_UTF32
-#endif  // !OS_WIN
+#include "include/base/cef_basictypes.h"
+#include "include/internal/cef_export.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 // CEF string type definitions. Whomever allocates |str| is responsible for
 // providing an appropriate |dtor| implementation that will free the string in
@@ -197,6 +185,17 @@ CEF_EXPORT void cef_string_userfree_utf8_free(cef_string_userfree_utf8_t str);
 CEF_EXPORT void cef_string_userfree_utf16_free(cef_string_userfree_utf16_t str);
 
 
+///
+// These functions convert utf16 string case using the current ICU locale. This
+// may change the length of the string in some cases.
+///
+
+CEF_EXPORT int cef_string_utf16_to_lower(const char16* src, size_t src_len,
+                                         cef_string_utf16_t* output);
+CEF_EXPORT int cef_string_utf16_to_upper(const char16* src, size_t src_len,
+                                         cef_string_utf16_t* output);
+
+
 #ifdef __cplusplus
 }
 #endif