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

#include <string_conv.h>

Public Member Functions

 string_utf8_from_ansi ()
 
 string_utf8_from_ansi (const string_utf8_from_ansi &p_source)
 
 string_utf8_from_ansi (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
 
const char * toString () const
 

Private Attributes

string_utf8_from_codepage m_buffer
 

Detailed Description

Definition at line 451 of file string_conv.h.

Constructor & Destructor Documentation

pfc::stringcvt::string_utf8_from_ansi::string_utf8_from_ansi ( )
inline

Definition at line 453 of file string_conv.h.

453 {}
pfc::stringcvt::string_utf8_from_ansi::string_utf8_from_ansi ( const string_utf8_from_ansi p_source)
inline

Definition at line 454 of file string_conv.h.

454 : m_buffer(p_source.m_buffer) {}
string_utf8_from_codepage m_buffer
Definition: string_conv.h:464
pfc::stringcvt::string_utf8_from_ansi::string_utf8_from_ansi ( const char *  p_source,
t_size  p_source_size = ~0 
)
inline

Definition at line 455 of file string_conv.h.

455 : m_buffer(codepage_system,p_source,p_source_size) {}
string_utf8_from_codepage m_buffer
Definition: string_conv.h:464

Member Function Documentation

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

Definition at line 461 of file string_conv.h.

461 {m_buffer.convert(codepage_system,p_source,p_source_size);}
void convert(unsigned p_codepage, const char *p_source, t_size p_source_size=~0)
Definition: string_conv.h:433
string_utf8_from_codepage m_buffer
Definition: string_conv.h:464
const char* pfc::stringcvt::string_utf8_from_ansi::get_ptr ( ) const
inline

Definition at line 457 of file string_conv.h.

457 {return m_buffer.get_ptr();}
string_utf8_from_codepage m_buffer
Definition: string_conv.h:464
bool pfc::stringcvt::string_utf8_from_ansi::is_empty ( ) const
inline

Definition at line 459 of file string_conv.h.

459 {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_utf8_from_ansi::length ( ) const
inline

Definition at line 460 of file string_conv.h.

460 {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_utf8_from_ansi::operator const char * ( ) const
inline

Definition at line 456 of file string_conv.h.

456 {return get_ptr();}
const char* pfc::stringcvt::string_utf8_from_ansi::toString ( ) const
inline

Definition at line 458 of file string_conv.h.

458 {return get_ptr();}

Field Documentation

string_utf8_from_codepage pfc::stringcvt::string_utf8_from_ansi::m_buffer
private

Definition at line 464 of file string_conv.h.


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