foobar2000 SDK  2015-01-14
Namespaces | Functions | Variables
cue_creator.cpp File Reference

Go to the source code of this file.

Namespaces

 cue_creator
 

Functions

void cue_creator::create (pfc::string_formatter &p_out, const t_entry_list &p_data)
 
static bool is_meta_same_everywhere (const cue_creator::t_entry_list &p_list, const char *p_meta)
 

Variables

static const char g_eol [] = "\r\n"
 

Function Documentation

static bool is_meta_same_everywhere ( const cue_creator::t_entry_list p_list,
const char *  p_meta 
)
static

Definition at line 23 of file cue_creator.cpp.

24 {
25  pfc::string8_fastalloc reference,temp;
26 
28  iter = p_list.first();
29  if (!iter.is_valid()) return false;
30  if (!iter->m_infos.meta_format(p_meta,reference)) return false;
31  for(;iter.is_valid();++iter)
32  {
33  if (!iter->m_infos.meta_format(p_meta,temp)) return false;
34  if (strcmp(temp,reference)!=0) return false;
35  }
36  return true;
37 }
bool is_valid() const
Definition: iterators.h:24
string8_t< pfc::alloc_fast_aggressive > string8_fastalloc
Definition: string_base.h:435

Variable Documentation

const char g_eol[] = "\r\n"
static

Definition at line 39 of file cue_creator.cpp.