Debian Codegraph @

external/opusfile/opusfile_internal.cpp

raw symbols SCIP
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE libopusfile SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE libopusfile SOURCE CODE IS (C) COPYRIGHT 2012-2020 *
9 * by the Xiph.Org Foundation and contributors https://xiph.org/ *
10 * *
11 ********************************************************************/
12 //#ifdef HAVE_CONFIG_H
13 #include "opus__config.h"
14 //#endif
15
16 #include "opusfile_internal.h"
17
18 #if defined(OP_ENABLE_ASSERTIONS)
19 void op_fatal_impl(const char *_str,const char *_file,int _line){
20 fprintf(stderr,"Fatal (internal) error in %s, line %i: %s\n",
21 _file,_line,_str);
22 abort();
23 }
24 #endif
25
26 /*A version of strncasecmp() that is guaranteed to only ignore the case of
27 ASCII characters.*/
28 int op_strncasecmp(const char *_a,const char *_b,int _n){
29 int i;
30 for(i=0;i<_n;i++){
31 int a;
32 int b;
33 int d;
34 a=_a[i];
35 b=_b[i];
36 if(a>='a'&&a<='z')a-='a'-'A';
37 if(b>='a'&&b<='z')b-='a'-'A';
38 d=a-b;
39 if(d)return d;
40 }
41 return 0;
42 }