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

#include <string_conv.h>

Public Member Functions

 string_ansi_from_wide ()
 
 string_ansi_from_wide (const string_ansi_from_wide &p_source)
 
 string_ansi_from_wide (const wchar_t *p_source, t_size p_source_size=~0)
 
void convert (const wchar_t *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_wide m_buffer
 

Detailed Description

Definition at line 499 of file string_conv.h.

Constructor & Destructor Documentation

pfc::stringcvt::string_ansi_from_wide::string_ansi_from_wide ( )
inline

Definition at line 501 of file string_conv.h.

501 {}
pfc::stringcvt::string_ansi_from_wide::string_ansi_from_wide ( const string_ansi_from_wide p_source)
inline

Definition at line 502 of file string_conv.h.

502 : m_buffer(p_source.m_buffer) {}
string_codepage_from_wide m_buffer
Definition: string_conv.h:512
pfc::stringcvt::string_ansi_from_wide::string_ansi_from_wide ( const wchar_t *  p_source,
t_size  p_source_size = ~0 
)
inline

Definition at line 503 of file string_conv.h.

503 : m_buffer(codepage_system,p_source,p_source_size) {}
string_codepage_from_wide m_buffer
Definition: string_conv.h:512

Member Function Documentation

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

Definition at line 509 of file string_conv.h.

509 {m_buffer.convert(codepage_system,p_source,p_source_size);}
void convert(unsigned p_codepage, const wchar_t *p_source, t_size p_source_size=~0)
Definition: string_conv.h:388
string_codepage_from_wide m_buffer
Definition: string_conv.h:512
const char* pfc::stringcvt::string_ansi_from_wide::get_ptr ( ) const
inline

Definition at line 505 of file string_conv.h.

505 {return m_buffer.get_ptr();}
string_codepage_from_wide m_buffer
Definition: string_conv.h:512
bool pfc::stringcvt::string_ansi_from_wide::is_empty ( ) const
inline

Definition at line 506 of file string_conv.h.

506 {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_wide::length ( ) const
inline

Definition at line 507 of file string_conv.h.

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

Definition at line 504 of file string_conv.h.

504 {return get_ptr();}

Field Documentation

string_codepage_from_wide pfc::stringcvt::string_ansi_from_wide::m_buffer
private

Definition at line 512 of file string_conv.h.


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