Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

src/misc_support.cpp File Reference

#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include "misc_support.h"
#include "field.h"
#include "utils.h"

Go to the source code of this file.

Functions

char* ID3_GetString (const ID3_Frame *frame, ID3_FieldID fldName)
char* ID3_GetString (const ID3_Frame *frame, ID3_FieldID fldName, size_t nIndex)
void ID3_FreeString (char *str)
char* ID3_GetArtist (const ID3_Tag *tag)
ID3_FrameID3_AddArtist (ID3_Tag *tag, const char *text, bool replace)
size_t ID3_RemoveArtists (ID3_Tag *tag)
char* ID3_GetAlbum (const ID3_Tag *tag)
ID3_FrameID3_AddAlbum (ID3_Tag *tag, const char *text, bool replace)
size_t ID3_RemoveAlbums (ID3_Tag *tag)
char* ID3_GetTitle (const ID3_Tag *tag)
ID3_FrameID3_AddTitle (ID3_Tag *tag, const char *text, bool replace)
size_t ID3_RemoveTitles (ID3_Tag *tag)
char* ID3_GetYear (const ID3_Tag *tag)
ID3_FrameID3_AddYear (ID3_Tag *tag, const char *text, bool replace)
size_t ID3_RemoveYears (ID3_Tag *tag)
char* ID3_GetComment (const ID3_Tag *tag, const char *desc)
ID3_FrameID3_AddComment (ID3_Tag *tag, const char *text, bool replace)
ID3_FrameID3_AddComment (ID3_Tag *tag, const char *text, const char *desc, bool replace)
ID3_FrameID3_AddComment (ID3_Tag *tag, const char *text, const char *desc, const char *lang, bool replace)
size_t ID3_RemoveComments (ID3_Tag *tag, const char *desc)
char* ID3_GetTrack (const ID3_Tag *tag)
size_t ID3_GetTrackNum (const ID3_Tag *tag)
ID3_FrameID3_AddTrack (ID3_Tag *tag, uchar trk, uchar ttl, bool replace)
size_t ID3_RemoveTracks (ID3_Tag *tag)
char* ID3_GetGenre (const ID3_Tag *tag)
size_t ID3_GetGenreNum (const ID3_Tag *tag)
ID3_FrameID3_AddGenre (ID3_Tag *tag, size_t genre, bool replace)
size_t ID3_RemoveGenres (ID3_Tag *tag)
char* ID3_GetLyrics (const ID3_Tag *tag)
ID3_FrameID3_AddLyrics (ID3_Tag *tag, const char *text, bool replace)
ID3_FrameID3_AddLyrics (ID3_Tag *tag, const char *text, const char *desc, bool replace)
ID3_FrameID3_AddLyrics (ID3_Tag *tag, const char *text, const char *desc, const char *lang, bool replace)
size_t ID3_RemoveLyrics (ID3_Tag *tag)
char* ID3_GetLyricist (const ID3_Tag *tag)
ID3_FrameID3_AddLyricist (ID3_Tag *tag, const char *text, bool replace)
size_t ID3_RemoveLyricist (ID3_Tag *tag)
ID3_FrameID3_AddSyncLyrics (ID3_Tag *tag, const uchar *data, size_t datasize, ID3_TimeStampFormat format, bool replace)
ID3_FrameID3_AddSyncLyrics (ID3_Tag *tag, const uchar *data, size_t datasize, ID3_TimeStampFormat format, const char *desc, bool replace)
ID3_FrameID3_AddSyncLyrics (ID3_Tag *tag, const uchar *data, size_t datasize, ID3_TimeStampFormat format, const char *desc, const char *lang, bool replace)
ID3_FrameID3_AddSyncLyrics (ID3_Tag *tag, const uchar *data, size_t datasize, ID3_TimeStampFormat format, const char *desc, const char *lang, ID3_ContentType type, bool replace)
ID3_FrameID3_GetSyncLyricsInfo (const ID3_Tag *tag, const char *desc, const char *lang, ID3_TimeStampFormat &format, ID3_ContentType &type, size_t &size)
ID3_FrameID3_GetSyncLyrics (const ID3_Tag *tag, const char *lang, const char *desc, const uchar *pData, size_t &size)


Function Documentation

ID3_C_EXPORT ID3_Frame * ID3_AddAlbum ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 178 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddArtist ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 97 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddComment ( ID3_Tag * tag,
const char * text,
const char * desc,
const char * lang,
bool replace = false )
 

Parameters:
tag  
text  
desc  
lang  
replace  

Definition at line 375 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddComment ( ID3_Tag * tag,
const char * text,
const char * desc,
bool replace = false )
 

Parameters:
tag  
text  
desc  
replace  

Definition at line 369 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddComment ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 364 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddGenre ( ID3_Tag * tag,
size_t ucGenre,
bool replace = false )
 

Parameters:
tag  
ucGenre  
replace  

Definition at line 602 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddLyricist ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 737 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddLyrics ( ID3_Tag * tag,
const char * text,
const char * desc,
const char * lang,
bool replace = false )
 

Parameters:
tag  
text  
desc  
lang  
replace  

Definition at line 675 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddLyrics ( ID3_Tag * tag,
const char * text,
const char * desc,
bool replace = false )
 

Parameters:
tag  
text  
desc  
replace  

Definition at line 669 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddLyrics ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 664 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddSyncLyrics ( ID3_Tag * tag,
const uchar * data,
size_t datasize,
ID3_TimeStampFormat format,
const char * desc,
const char * lang,
ID3_ContentType type,
bool replace = false )
 

Parameters:
tag  
data  
datasize  
format  
desc  
lang  
type  
replace  

Definition at line 801 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddSyncLyrics ( ID3_Tag * tag,
const uchar * data,
size_t datasize,
ID3_TimeStampFormat format,
const char * desc,
const char * lang,
bool replace = false )
 

Parameters:
tag  
data  
datasize  
format  
desc  
lang  
replace  

Definition at line 793 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddSyncLyrics ( ID3_Tag * tag,
const uchar * data,
size_t datasize,
ID3_TimeStampFormat format,
const char * desc,
bool replace = false )
 

Parameters:
tag  
data  
datasize  
format  
desc  
replace  

Definition at line 786 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddSyncLyrics ( ID3_Tag * tag,
const uchar * data,
size_t datasize,
ID3_TimeStampFormat format,
bool replace = false )
 

Parameters:
tag  
data  
datasize  
format  
replace  

Definition at line 780 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddTitle ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 237 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddTrack ( ID3_Tag * tag,
uchar ucTrack,
uchar ucTotal = 0,
bool replace = false )
 

Parameters:
tag  
ucTrack  
ucTotal  
replace  

Definition at line 499 of file misc_support.cpp.

ID3_C_EXPORT ID3_Frame * ID3_AddYear ( ID3_Tag * tag,
const char * text,
bool replace = false )
 

Parameters:
tag  
text  
replace  

Definition at line 296 of file misc_support.cpp.

ID3_C_EXPORT void ID3_FreeString ( char * str )
 

Parameters:
str  

Definition at line 72 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetAlbum ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 162 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetArtist ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 78 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetComment ( const ID3_Tag * tag,
const char * desc = NULL )
 

Parameters:
tag  
desc  

Definition at line 339 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetGenre ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 556 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_GetGenreNum ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 573 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetLyricist ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 721 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetLyrics ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 648 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetString ( const ID3_Frame * frame,
ID3_FieldID fldName,
size_t nItems )
 

Parameters:
frame  
fldName  
nItems  

Definition at line 60 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetString ( const ID3_Frame * frame,
ID3_FieldID fldName )
 

Parameters:
frame  
fldName  

Definition at line 44 of file misc_support.cpp.

ID3_Frame * ID3_GetSyncLyrics ( const ID3_Tag * tag,
const char * lang,
const char * desc,
const uchar * pData,
size_t & size )
 

Parameters:
tag  
lang  
desc  
pData  
size  

Definition at line 889 of file misc_support.cpp.

ID3_Frame * ID3_GetSyncLyricsInfo ( const ID3_Tag * tag,
const char * desc,
const char * lang,
ID3_TimeStampFormat & format,
ID3_ContentType & type,
size_t & size )
 

Parameters:
tag  
desc  
lang  
format  
type  
size  

Definition at line 848 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetTitle ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 221 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetTrack ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 471 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_GetTrackNum ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 487 of file misc_support.cpp.

ID3_C_EXPORT char * ID3_GetYear ( const ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 280 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveAlbums ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 201 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveArtists ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 124 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveComments ( ID3_Tag * tag,
const char * desc = NULL )
 

Parameters:
tag  
desc  

Definition at line 429 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveGenres ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 628 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveLyricist ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 760 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveLyrics ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 701 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveTitles ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 260 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveTracks ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 536 of file misc_support.cpp.

ID3_C_EXPORT size_t ID3_RemoveYears ( ID3_Tag * tag )
 

Parameters:
tag  

Definition at line 319 of file misc_support.cpp.


Generated at Sat Sep 8 15:51:11 2001 for id3lib by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001