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

#include <string_conv.h>

Public Member Functions

 string_wide_from_ansi ()
 
 string_wide_from_ansi (const string_wide_from_ansi &p_source)
 
 string_wide_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 wchar_t * get_ptr () const
 
bool is_empty () const
 
t_size length () const
 
 operator const wchar_t * () const
 

Private Attributes

string_wide_from_codepage m_buffer
 

Detailed Description

Definition at line 483 of file string_conv.h.

Constructor & Destructor Documentation

pfc::stringcvt::string_wide_from_ansi::string_wide_from_ansi ( )
inline

Definition at line 485 of file string_conv.h.

485 {}
pfc::stringcvt::string_wide_from_ansi::string_wide_from_ansi ( const string_wide_from_ansi p_source)
inline

Definition at line 486 of file string_conv.h.

486 : m_buffer(p_source.m_buffer) {}
string_wide_from_codepage m_buffer
Definition: string_conv.h:496
pfc::stringcvt::string_wide_from_ansi::string_wide_from_ansi ( const char *  p_source,
t_size  p_source_size = ~0 
)
inline

Definition at line 487 of file string_conv.h.

487 : m_buffer(codepage_system,p_source,p_source_size) {}
string_wide_from_codepage m_buffer
Definition: string_conv.h:496

Member Function Documentation

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

Definition at line 493 of file string_conv.h.

493 {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:364
string_wide_from_codepage m_buffer
Definition: string_conv.h:496
const wchar_t* pfc::stringcvt::string_wide_from_ansi::get_ptr ( ) const
inline

Definition at line 489 of file string_conv.h.

489 {return m_buffer.get_ptr();}
string_wide_from_codepage m_buffer
Definition: string_conv.h:496
bool pfc::stringcvt::string_wide_from_ansi::is_empty ( ) const
inline

Definition at line 490 of file string_conv.h.

490 {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
const wchar_t * get_ptr() const
Definition: string_conv.h:489
t_size pfc::stringcvt::string_wide_from_ansi::length ( ) const
inline

Definition at line 491 of file string_conv.h.

491 {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
const wchar_t * get_ptr() const
Definition: string_conv.h:489
pfc::stringcvt::string_wide_from_ansi::operator const wchar_t * ( ) const
inline

Definition at line 488 of file string_conv.h.

488 {return get_ptr();}
const wchar_t * get_ptr() const
Definition: string_conv.h:489

Field Documentation

string_wide_from_codepage pfc::stringcvt::string_wide_from_ansi::m_buffer
private

Definition at line 496 of file string_conv.h.


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