foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::stringcvt::string_ansi_from_utf8

#include <string_conv.h>

Public Member Functions

 string_ansi_from_utf8 ()
 
 string_ansi_from_utf8 (const string_ansi_from_utf8 &p_source)
 
 string_ansi_from_utf8 (const char *p_source, t_size p_source_size=~0)
 
void convert (const char *p_source, t_size p_source_size=~0)
 
const char * get_ptr () const
 
bool is_empty () const
 
t_size length () const
 
 operator const char * () const
 

Private Attributes

string_codepage_from_utf8 m_buffer
 

Detailed Description

Definition at line 467 of file string_conv.h.

Constructor & Destructor Documentation

pfc::stringcvt::string_ansi_from_utf8::string_ansi_from_utf8 ( )
inline

Definition at line 469 of file string_conv.h.

469 {}
pfc::stringcvt::string_ansi_from_utf8::string_ansi_from_utf8 ( const string_ansi_from_utf8 p_source)
inline

Definition at line 470 of file string_conv.h.

470 : m_buffer(p_source.m_buffer) {}
string_codepage_from_utf8 m_buffer
Definition: string_conv.h:480
pfc::stringcvt::string_ansi_from_utf8::string_ansi_from_utf8 ( const char *  p_source,
t_size  p_source_size = ~0 
)
inline

Definition at line 471 of file string_conv.h.

471 : m_buffer(codepage_system,p_source,p_source_size) {}
string_codepage_from_utf8 m_buffer
Definition: string_conv.h:480

Member Function Documentation

void pfc::stringcvt::string_ansi_from_utf8::convert ( const char *  p_source,
t_size  p_source_size = ~0 
)
inline

Definition at line 477 of file string_conv.h.

477 {m_buffer.convert(codepage_system,p_source,p_source_size);}
string_codepage_from_utf8 m_buffer
Definition: string_conv.h:480
void convert(unsigned p_codepage, const char *p_source, t_size p_source_size=~0)
Definition: string_conv.h:410
const char* pfc::stringcvt::string_ansi_from_utf8::get_ptr ( ) const
inline

Definition at line 473 of file string_conv.h.

473 {return m_buffer.get_ptr();}
string_codepage_from_utf8 m_buffer
Definition: string_conv.h:480
bool pfc::stringcvt::string_ansi_from_utf8::is_empty ( ) const
inline

Definition at line 474 of file string_conv.h.

474 {return string_is_empty_t(get_ptr());}
bool string_is_empty_t(const t_char *p_string, t_size p_string_size=~0)
Definition: string_conv.h:74
t_size pfc::stringcvt::string_ansi_from_utf8::length ( ) const
inline

Definition at line 475 of file string_conv.h.

475 {return strlen_t(get_ptr());}
t_size strlen_t(const t_char *p_string, t_size p_string_size=~0)
Definition: string_conv.h:67
pfc::stringcvt::string_ansi_from_utf8::operator const char * ( ) const
inline

Definition at line 472 of file string_conv.h.

472 {return get_ptr();}

Field Documentation

string_codepage_from_utf8 pfc::stringcvt::string_ansi_from_utf8::m_buffer
private

Definition at line 480 of file string_conv.h.


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