/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * * * * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009 * * by the Xiph.Org Foundation and contributors http://www.xiph.org/ * * * ******************************************************************** function: last mod: $Id$ ********************************************************************/ #include <stdlib.h> #include <ctype.h> #include <string.h> #include "internal.h" /*This is more or less the same as strncasecmp, but that doesn't exist everywhere, and this is a fairly trivial function, so we include it. Note: We take advantage of the fact that we know _n is less than or equal to the length of at least one of the strings.*/ static int oc_tagcompare(const char *_s1,const char *_s2,int _n){ … } void th_info_init(th_info *_info){ … } void th_info_clear(th_info *_info){ … } void th_comment_init(th_comment *_tc){ … } void th_comment_add(th_comment *_tc,const char *_comment){ … } void th_comment_add_tag(th_comment *_tc,const char *_tag,const char *_val){ … } char *th_comment_query(th_comment *_tc,const char *_tag,int _count){ … } int th_comment_query_count(th_comment *_tc,const char *_tag){ … } void th_comment_clear(th_comment *_tc){ … }