Chromium Embedded Framework (CEF)  126.2.0+g5c56e98+chromium-126.0.6478.62
CefStringTraitsUTF16 Struct Reference

Traits implementation for utf16 character strings. More...

#include "include/internal/cef_string_wrappers.h"

Public Types

typedef char16_t char_type
 
typedef cef_string_utf16_t struct_type
 
typedef cef_string_userfree_utf16_t userfree_struct_type
 

Static Public Member Functions

static void clear (struct_type *s)
 
static int set (const char_type *src, size_t src_size, struct_type *output, int copy)
 
static int compare (const struct_type *s1, const struct_type *s2)
 
static userfree_struct_type userfree_alloc ()
 
static void userfree_free (userfree_struct_type ufs)
 
static bool from_ascii (const char *str, size_t len, struct_type *s)
 
static std::string to_string (const struct_type *s)
 
static bool from_string (const std::string::value_type *data, size_t length, struct_type *s)
 
static bool from_string (const std::string &str, struct_type *s)
 
static bool from_wstring (const std::wstring &str, struct_type *s)
 
static std::u16string to_string16 (const struct_type *s)
 
static bool from_string16 (const std::u16string::value_type *data, size_t length, struct_type *s)
 
static bool from_string16 (const std::u16string &str, struct_type *s)
 

Detailed Description

Traits implementation for utf16 character strings.

Member Typedef Documentation

◆ char_type

◆ struct_type

◆ userfree_struct_type

Member Function Documentation

◆ clear()

static void CefStringTraitsUTF16::clear ( struct_type s)
inlinestatic

◆ compare()

static int CefStringTraitsUTF16::compare ( const struct_type s1,
const struct_type s2 
)
inlinestatic

◆ from_ascii()

static bool CefStringTraitsUTF16::from_ascii ( const char *  str,
size_t  len,
struct_type s 
)
inlinestatic

◆ from_string() [1/2]

static bool CefStringTraitsUTF16::from_string ( const std::string &  str,
struct_type s 
)
inlinestatic

◆ from_string() [2/2]

static bool CefStringTraitsUTF16::from_string ( const std::string::value_type *  data,
size_t  length,
struct_type s 
)
inlinestatic

◆ from_string16() [1/2]

static bool CefStringTraitsUTF16::from_string16 ( const std::u16string &  str,
struct_type s 
)
inlinestatic

◆ from_string16() [2/2]

static bool CefStringTraitsUTF16::from_string16 ( const std::u16string::value_type *  data,
size_t  length,
struct_type s 
)
inlinestatic

◆ from_wstring()

static bool CefStringTraitsUTF16::from_wstring ( const std::wstring &  str,
struct_type s 
)
inlinestatic

◆ set()

static int CefStringTraitsUTF16::set ( const char_type src,
size_t  src_size,
struct_type output,
int  copy 
)
inlinestatic

◆ to_string()

static std::string CefStringTraitsUTF16::to_string ( const struct_type s)
inlinestatic

◆ to_string16()

static std::u16string CefStringTraitsUTF16::to_string16 ( const struct_type s)
inlinestatic

◆ userfree_alloc()

static userfree_struct_type CefStringTraitsUTF16::userfree_alloc ( )
inlinestatic

◆ userfree_free()

static void CefStringTraitsUTF16::userfree_free ( userfree_struct_type  ufs)
inlinestatic

The documentation for this struct was generated from the following file: