YAZ  5.34.0
Functions | Variables
cclstr.c File Reference

Implements CCL string compare utilities. More...

#include <yaz/yaz-iconv.h>
#include <stdio.h>
#include <stdlib.h>
#include <yaz/ccl.h>

Go to the source code of this file.

Functions

static int ccli_toupper (int c)
 
int ccl_stricmp (const char *s1, const char *s2)
 
int ccl_memicmp (const char *s1, const char *s2, size_t n)
 

Variables

int(* ccl_toupper )(int c) = NULL
 

Detailed Description

Implements CCL string compare utilities.

Definition in file cclstr.c.

Function Documentation

◆ ccl_memicmp()

int ccl_memicmp ( const char *  s1,
const char *  s2,
size_t  n 
)

CCL version of ccl_memicmp

Definition at line 45 of file cclstr.c.

References ccl_toupper, and ccli_toupper().

Referenced by ccl_qual_search(), ccl_search_stop(), and token_cmp().

◆ ccl_stricmp()

int ccl_stricmp ( const char *  s1,
const char *  s2 
)

CCL version of ccl_stricmp

Definition at line 28 of file cclstr.c.

References ccl_toupper, and ccli_toupper().

Referenced by ccl_qual_field2().

◆ ccli_toupper()

static int ccli_toupper ( int  c)
static

Definition at line 18 of file cclstr.c.

References yaz_islower, and yaz_toupper.

Referenced by ccl_memicmp(), and ccl_stricmp().

Variable Documentation

◆ ccl_toupper

int(* ccl_toupper) (int c) ( int  c) = NULL

Char-to-upper function

Definition at line 26 of file cclstr.c.

Referenced by ccl_memicmp(), and ccl_stricmp().