Chromium Embedded Framework (CEF)  115.2.0+g096e3eb+chromium-115.0.5790.13
CefStringTraitsUTF8 Struct Reference

Traits implementation for utf8 character strings. More...

#include "include/internal/cef_string_wrappers.h"

Public Types

typedef char char_type
 
typedef cef_string_utf8_t struct_type
 
typedef cef_string_userfree_utf8_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 std::wstring to_wstring (const struct_type *s)
 
static bool from_wstring (const std::wstring::value_type *data, size_t length, 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 utf8 character strings.

Member Typedef Documentation

◆ char_type

◆ struct_type

◆ userfree_struct_type

Member Function Documentation

◆ clear()

static void CefStringTraitsUTF8::clear ( struct_type s)
inlinestatic

◆ compare()

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

◆ from_ascii()

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

◆ from_string() [1/2]

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

◆ from_string() [2/2]

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

◆ from_string16() [1/2]

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

◆ from_string16() [2/2]

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

◆ from_wstring() [1/2]

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

◆ from_wstring() [2/2]

static bool CefStringTraitsUTF8::from_wstring ( const std::wstring::value_type *  data,
size_t  length,
struct_type s 
)
inlinestatic

◆ set()

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

◆ to_string()

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

◆ to_string16()

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

◆ to_wstring()

static std::wstring CefStringTraitsUTF8::to_wstring ( const struct_type s)
inlinestatic

◆ userfree_alloc()

static userfree_struct_type CefStringTraitsUTF8::userfree_alloc ( )
inlinestatic

◆ userfree_free()

static void CefStringTraitsUTF8::userfree_free ( userfree_struct_type  ufs)
inlinestatic

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