dami Namespace Reference


Namespaces

namespace  id3
namespace  lyr3
namespace  mm

Functions

size_t renderNumber (uchar *buffer, uint32 val, size_t size)
String renderNumber (uint32 val, size_t size)
String convert (String data, ID3_TextEnc sourceEnc, ID3_TextEnc targetEnc)
size_t ucslen (const unicode_t *unicode)
ID3_Err createFile (String name, fstream &file)
size_t getFileSize (fstream &file)
size_t getFileSize (ifstream &file)
size_t getFileSize (ofstream &file)
ID3_Err openWritableFile (String name, fstream &file)
ID3_Err openWritableFile (String name, ofstream &file)
ID3_Err openReadableFile (String name, fstream &file)
ID3_Err openReadableFile (String name, ifstream &file)
String toString (uint32 val)
WString toWString (const unicode_t buf[], size_t len)
template<typename T>
const T & min (const T &a, const T &b)
template<typename T>
const T & max (const T &a, const T &b)
template<typename T>
const T & mid (const T &lo, const T &mid, const T &hi)
template<typename T>
abs (const T &a)


Function Documentation

template<typename T>
T dami::abs ( const T &  a  ) 

Definition at line 75 of file utils.h.

String ID3_C_EXPORT dami::convert ( String  data,
ID3_TextEnc  sourceEnc,
ID3_TextEnc  targetEnc 
)

Definition at line 185 of file utils.cpp.

References oldconvert().

Referenced by ID3_FieldImpl::SetEncoding().

ID3_Err ID3_C_EXPORT dami::createFile ( String  name,
fstream &  file 
)

Definition at line 240 of file utils.cpp.

References ID3E_NoError, and ID3E_ReadOnly.

Referenced by RenderV2ToFile(), and ID3_TagImpl::Update().

size_t ID3_C_EXPORT dami::getFileSize ( ofstream &  file  ) 

Definition at line 282 of file utils.cpp.

Referenced by ID3_TagImpl::Strip(), and ID3_TagImpl::Update().

size_t ID3_C_EXPORT dami::getFileSize ( ifstream &  file  ) 

Definition at line 269 of file utils.cpp.

size_t ID3_C_EXPORT dami::getFileSize ( fstream &  file  ) 

Definition at line 256 of file utils.cpp.

template<typename T>
const T& dami::max ( const T &  a,
const T &  b 
)

Definition at line 59 of file utils.h.

Referenced by mid().

template<typename T>
const T& dami::mid ( const T &  lo,
const T &  mid,
const T &  hi 
)

Definition at line 67 of file utils.h.

References max(), and min().

template<typename T>
const T& dami::min ( const T &  a,
const T &  b 
)

Definition at line 51 of file utils.h.

Referenced by ID3_FieldImpl::Get(), dami::id3::v2::getGenreNum(), ID3_GetGenreNum(), ID3_GetSyncLyrics(), mid(), ID3_FieldImpl::Set(), and ID3_TagImpl::Strip().

ID3_Err ID3_C_EXPORT dami::openReadableFile ( String  name,
ifstream &  file 
)

Definition at line 350 of file utils.cpp.

References ID3E_NoError, ID3E_NoFile, and NOCREATE.

Referenced by ID3_TagImpl::ParseFile().

ID3_Err ID3_C_EXPORT dami::openReadableFile ( String  name,
fstream &  file 
)

Definition at line 335 of file utils.cpp.

References ID3E_NoError, ID3E_NoFile, and NOCREATE.

ID3_Err ID3_C_EXPORT dami::openWritableFile ( String  name,
ofstream &  file 
)

Definition at line 315 of file utils.cpp.

References ID3E_NoError, ID3E_NoFile, ID3E_ReadOnly, and NOCREATE.

Referenced by RenderV2ToFile(), ID3_TagImpl::Strip(), and ID3_TagImpl::Update().

ID3_Err ID3_C_EXPORT dami::openWritableFile ( String  name,
fstream &  file 
)

Definition at line 295 of file utils.cpp.

References ID3E_NoError, ID3E_NoFile, ID3E_ReadOnly, and NOCREATE.

String ID3_C_EXPORT dami::renderNumber ( uint32  val,
size_t  size = sizeof(uint32) 
)

Definition at line 103 of file utils.cpp.

References MASK8.

size_t ID3_C_EXPORT dami::renderNumber ( uchar buffer,
uint32  val,
size_t  size = sizeof(uint32) 
)

Definition at line 92 of file utils.cpp.

References MASK8.

String ID3_C_EXPORT dami::toString ( uint32  val  ) 

Definition at line 365 of file utils.cpp.

Referenced by dami::mm::parse(), dami::id3::v2::setGenre(), and dami::id3::v2::setTrack().

WString ID3_C_EXPORT dami::toWString ( const unicode_t  buf[],
size_t  len 
)

Definition at line 383 of file utils.cpp.

Referenced by ID3_Tag::Find().

size_t ID3_C_EXPORT dami::ucslen ( const unicode_t unicode  ) 

Definition at line 216 of file utils.cpp.

References NULL, and NULL_UNICODE.

Referenced by ID3_FieldImpl::Add(), ID3_Tag::Find(), ID3_FieldImpl::Get(), ID3_FieldImpl::GetRawUnicodeTextItem(), and ID3_FieldImpl::Set().


Generated on Thu Sep 13 16:10:27 2007 for id3lib by  doxygen 1.5.0