qse/ase/lib/utl/helper.c

93 lines
1.5 KiB
C
Raw Normal View History

2008-06-29 02:37:09 +00:00
/*
* $Id: helper.c 329 2008-08-16 14:08:53Z baconevi $
2008-06-29 02:37:09 +00:00
*/
#include <ase/utl/helper.h>
#include <ase/utl/ctype.h>
static ase_bool_t ccls_isupper (void* custom, ase_cint_t c)
{
return ase_isupper (c);
}
static ase_bool_t ccls_islower (void* custom, ase_cint_t c)
{
return ase_islower (c);
}
static ase_bool_t ccls_isalpha (void* custom, ase_cint_t c)
{
return ase_isalpha (c);
}
static ase_bool_t ccls_isdigit (void* custom, ase_cint_t c)
{
return ase_isdigit (c);
}
static ase_bool_t ccls_isxdigit (void* custom, ase_cint_t c)
{
return ase_isxdigit (c);
}
static ase_bool_t ccls_isalnum (void* custom, ase_cint_t c)
{
return ase_isalnum (c);
}
static ase_bool_t ccls_isspace (void* custom, ase_cint_t c)
{
return ase_isspace (c);
}
static ase_bool_t ccls_isprint (void* custom, ase_cint_t c)
{
return ase_isprint (c);
}
static ase_bool_t ccls_isgraph (void* custom, ase_cint_t c)
{
return ase_isgraph (c);
}
static ase_bool_t ccls_iscntrl (void* custom, ase_cint_t c)
{
return ase_iscntrl (c);
}
static ase_bool_t ccls_ispunct (void* custom, ase_cint_t c)
{
return ase_ispunct (c);
}
static ase_cint_t ccls_toupper (void* custom, ase_cint_t c)
{
return ase_toupper (c);
}
static ase_cint_t ccls_tolower (void* custom, ase_cint_t c)
{
return ase_tolower (c);
}
static ase_ccls_t ccls =
{
ccls_isupper,
ccls_islower,
ccls_isalpha,
ccls_isdigit,
ccls_isxdigit,
ccls_isalnum,
ccls_isspace,
ccls_isprint,
ccls_isgraph,
ccls_iscntrl,
ccls_ispunct,
ccls_toupper,
ccls_tolower,
ASE_NULL
};
ase_ccls_t* ase_ccls = &ccls;