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

#include <string_base.h>

Public Member Functions

 string_directory (const char *p_path)
 
 operator const char * () const
 

Private Attributes

string8 m_data
 

Detailed Description

Definition at line 532 of file string_base.h.

Constructor & Destructor Documentation

pfc::string_directory::string_directory ( const char *  p_path)

Definition at line 684 of file string_base.cpp.

685 {
686  t_size ptr = scan_filename(p_path);
687  if (ptr > 1) {
688  if (is_path_separator(p_path[ptr-1]) && !is_path_separator(p_path[ptr-2])) --ptr;
689  }
690  m_data.set_string(p_path,ptr);
691 }
void set_string(const char *p_string, t_size p_length=~0)
Definition: string8_impl.h:15
bool is_path_separator(unsigned c)
Definition: string_base.cpp:59
size_t t_size
Definition: int_types.h:48
t_size scan_filename(const char *ptr)

Member Function Documentation

pfc::string_directory::operator const char * ( ) const
inline

Definition at line 536 of file string_base.h.

536 {return m_data;}

Field Documentation

string8 pfc::string_directory::m_data
private

Definition at line 538 of file string_base.h.


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