43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
extern const of_char16_t of_windows_1251[128];
extern const of_char16_t of_windows_1252[128];
extern const of_char16_t of_codepage_437[128];
extern const of_char16_t of_codepage_850[128];
extern const of_char16_t of_codepage_858[128];
extern const of_char16_t of_mac_roman[128];
extern const of_char16_t of_koi8_r[128];
static inline int
memcasecmp(const char *first, const char *second, size_t length)
{
for (size_t i = 0; i < length; i++) {
unsigned char f = first[i];
unsigned char s = second[i];
|
>
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
extern const of_char16_t of_windows_1251[128];
extern const of_char16_t of_windows_1252[128];
extern const of_char16_t of_codepage_437[128];
extern const of_char16_t of_codepage_850[128];
extern const of_char16_t of_codepage_858[128];
extern const of_char16_t of_mac_roman[128];
extern const of_char16_t of_koi8_r[128];
extern const of_char16_t of_koi8_u[128];
static inline int
memcasecmp(const char *first, const char *second, size_t length)
{
for (size_t i = 0; i < length; i++) {
unsigned char f = first[i];
unsigned char s = second[i];
|
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
table = of_mac_roman;
break;
#endif
#ifdef HAVE_KOI8_R
case OF_STRING_ENCODING_KOI8_R:
table = of_koi8_r;
break;
#endif
default:
@throw [OFInvalidEncodingException exception];
}
j = 0;
for (size_t i = 0; i < cStringLength; i++) {
|
>
>
>
>
>
|
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
table = of_mac_roman;
break;
#endif
#ifdef HAVE_KOI8_R
case OF_STRING_ENCODING_KOI8_R:
table = of_koi8_r;
break;
#endif
#ifdef HAVE_KOI8_U
case OF_STRING_ENCODING_KOI8_U:
table = of_koi8_u;
break;
#endif
default:
@throw [OFInvalidEncodingException exception];
}
j = 0;
for (size_t i = 0; i < cStringLength; i++) {
|