{-# OPTIONS_GHC -fno-warn-unused-imports #-} #include #include "include/internal/cef_string_types.h" #include "include/internal/cef_build.h" #include "include/internal/cef_export.h" module Bindings.CEF3.Internal.CefStringTypes where import Foreign.Ptr #strict_import #if defined(OS_WIN) #synonym_t char16 , CUShort #else -- should be CUInt #synonym_t char16 , CUShort #ifndef WCHAR_T_IS_UTF32 #define WCHAR_T_IS_UTF32 #endif // WCHAR_T_IS_UTF32 #endif // !OS_WIN #starttype cef_string_wide_t #field str , Ptr CInt #field length , CSize #field dtor , #stoptype #callback_t cb_cef_string_wide_dtor, FunPtr (Ptr CInt -> IO ()) #starttype cef_string_utf8_t #field str , CString #field length , CSize #field dtor , #stoptype #callback_t cb_cef_string_utf8_dtor, FunPtr (CString -> IO ()) #starttype cef_string_utf16_t #field str , Ptr CUShort #field length , CSize #field dtor , #stoptype #callback_t cb_cef_string_utf16_dtor, FunPtr (Ptr CUShort -> IO ()) #ccall cef_string_wide_set , Ptr CInt -> CSize -> Ptr -> CInt -> IO CInt #ccall cef_string_utf8_set , CString -> CSize -> Ptr -> CInt -> IO CInt #ccall cef_string_utf16_set , Ptr CUShort -> CSize -> Ptr -> CInt -> IO CInt c'cef_string_wide_copy src src_len output = c'cef_string_wide_set src src_len output 1 c'cef_string_utf8_copy src src_len output = c'cef_string_utf8_set src src_len output 1 c'cef_string_utf16_copy src src_len output = c'cef_string_utf16_set src src_len output 1 #ccall cef_string_wide_clear , Ptr -> IO () #ccall cef_string_utf8_clear , Ptr -> IO () #ccall cef_string_utf16_clear , Ptr -> IO () #ccall cef_string_wide_cmp , Ptr -> Ptr -> IO CInt #ccall cef_string_utf8_cmp , Ptr -> Ptr -> IO CInt #ccall cef_string_utf16_cmp , Ptr -> Ptr -> IO CInt #ccall cef_string_wide_to_utf8 , Ptr CInt -> CSize -> Ptr -> IO CInt #ccall cef_string_utf8_to_wide , CString -> CSize -> Ptr -> IO CInt #ccall cef_string_wide_to_utf16 , Ptr CInt -> CSize -> Ptr -> IO CInt #ccall cef_string_utf16_to_wide , Ptr CUShort -> CSize -> Ptr -> IO CInt #ccall cef_string_utf8_to_utf16 , CString -> CSize -> Ptr -> IO CInt #ccall cef_string_utf16_to_utf8 , Ptr CUShort -> CSize -> Ptr -> IO CInt #ccall cef_string_ascii_to_wide , CString -> CSize -> Ptr -> IO CInt #ccall cef_string_ascii_to_utf16 , CString -> CSize -> Ptr -> IO CInt {- typedef cef_string_wide_t * cef_string_userfree_wide_t; -} #synonym_t cef_string_userfree_wide_t , Ptr {- typedef cef_string_utf8_t * cef_string_userfree_utf8_t; -} #synonym_t cef_string_userfree_utf8_t , Ptr {- typedef cef_string_utf16_t * cef_string_userfree_utf16_t; -} #synonym_t cef_string_userfree_utf16_t , Ptr #ccall cef_string_userfree_wide_alloc , IO () #ccall cef_string_userfree_utf8_alloc , IO () #ccall cef_string_userfree_utf16_alloc , IO () #ccall cef_string_userfree_wide_free , -> IO () #ccall cef_string_userfree_utf8_free , -> IO () #ccall cef_string_userfree_utf16_free , -> IO ()