| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
/* |
|
2
|
|
|
|
|
|
|
* reimplementation of Daniel Bernstein's byte library. |
|
3
|
|
|
|
|
|
|
* placed in the public domain by Uwe Ohse, uwe@ohse.de. |
|
4
|
|
|
|
|
|
|
*/ |
|
5
|
|
|
|
|
|
|
#include "case.h" |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
int |
|
8
|
0
|
|
|
|
|
|
case_startb(const char *ulo, unsigned int l, const char *ush) |
|
9
|
|
|
|
|
|
|
{ |
|
10
|
|
|
|
|
|
|
const unsigned char *lo= (const unsigned char*) ulo; |
|
11
|
|
|
|
|
|
|
const unsigned char *sh= (const unsigned char*) ush; |
|
12
|
|
|
|
|
|
|
unsigned int i; |
|
13
|
0
|
0
|
|
|
|
|
if (!case_init_lwrdone) case_init_lwrtab(); |
|
14
|
|
|
|
|
|
|
i=0; |
|
15
|
|
|
|
|
|
|
while (1) { |
|
16
|
0
|
0
|
|
|
|
|
if (i==l) return 1; |
|
17
|
0
|
0
|
|
|
|
|
if (case_lwrtab[lo[i]]!=case_lwrtab[sh[i]]) |
|
18
|
|
|
|
|
|
|
return 0; |
|
19
|
0
|
|
|
|
|
|
i++; |
|
20
|
0
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
} |