foobar2000 SDK  2015-01-14
Public Member Functions
titleformat_text_filter_impl_filename_chars

#include <titleformat.h>

+ Inheritance diagram for titleformat_text_filter_impl_filename_chars:

Public Member Functions

void write (const GUID &p_inputType, pfc::string_receiver &p_out, const char *p_data, t_size p_dataLength)
 

Additional Inherited Members

- Protected Member Functions inherited from titleformat_text_filter
 titleformat_text_filter ()
 
 ~titleformat_text_filter ()
 

Detailed Description

Definition at line 155 of file titleformat.h.

Member Function Documentation

void titleformat_text_filter_impl_filename_chars::write ( const GUID p_inputType,
pfc::string_receiver p_out,
const char *  p_data,
t_size  p_dataLength 
)
virtual

Implements titleformat_text_filter.

Definition at line 169 of file titleformat.cpp.

169  {
170  if (p_inputType == titleformat_inputtypes::meta) {
171  //slightly inefficient...
172  p_out.add_string( pfc::io::path::replaceIllegalNameChars(pfc::string(p_data,p_dataLength)).ptr());
173  } else p_out.add_string(p_data,p_dataLength);
174 }
virtual void add_string(const char *p_string, t_size p_string_size=~0)=0
string replaceIllegalNameChars(string fn, bool allowWC)
Definition: pathUtils.cpp:93
New EXPERIMENTAL string class, allowing efficient copies and returning from functions. Does not implement the string_base interface so you still need string8 in many cases. Safe to pass between DLLs, but since a reference is used, objects possibly created by other DLLs must be released before owning DLLs are unloaded.
Definition: stringNew.h:19

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