netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
util_unistr.c File Reference
#include <arpa/inet.h>
#include <atalk/logger.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <atalk/unicode.h>
#include <atalk/byteorder.h>
#include "precompose.h"

Functions

int strlower_w (ucs2_t *s)
int strupper_w (ucs2_t *s)
int islower_w (ucs2_t c)
int islower_sp (uint32_t c_sp)
int isupper_w (ucs2_t c)
int isupper_sp (uint32_t c_sp)
size_t strlen_w (const ucs2_t *src)
size_t strnlen_w (const ucs2_t *src, size_t max)
ucs2_tstrchr_w (const ucs2_t *s, ucs2_t c)
ucs2_tstrcasechr_w (const ucs2_t *s, ucs2_t c)
ucs2_tstrcasechr_sp (const ucs2_t *s, uint32_t c_sp)
int strcmp_w (const ucs2_t *a, const ucs2_t *b)
int strncmp_w (const ucs2_t *a, const ucs2_t *b, size_t len)
ucs2_tstrstr_w (const ucs2_t *s, const ucs2_t *ins)
ucs2_tstrcasestr_w (const ucs2_t *s, const ucs2_t *ins)
int strcasecmp_w (const ucs2_t *a, const ucs2_t *b)
int strncasecmp_w (const ucs2_t *a, const ucs2_t *b, size_t len)
ucs2_tstrndup_w (const ucs2_t *src, size_t len)
ucs2_tstrdup_w (const ucs2_t *src)
ucs2_tstrncpy_w (ucs2_t *dest, const ucs2_t *src, const size_t max)
ucs2_tstrncat_w (ucs2_t *dest, const ucs2_t *src, const size_t max)
ucs2_tstrcat_w (ucs2_t *dest, const ucs2_t *src)
static ucs2_t do_precomposition (unsigned int base, unsigned int comb)
static uint32_t do_precomposition_sp (unsigned int base_sp, unsigned int comb_sp)
static uint32_t do_decomposition (ucs2_t base)
static uint64_t do_decomposition_sp (unsigned int base_sp)
size_t precompose_w (ucs2_t *name, size_t inplen, ucs2_t *comp, size_t *outlen)
size_t decompose_w (ucs2_t *name, size_t inplen, ucs2_t *comp, size_t *outlen)

Function Documentation

◆ decompose_w()

size_t decompose_w ( ucs2_t * name,
size_t inplen,
ucs2_t * comp,
size_t * outlen )

◆ do_decomposition()

uint32_t do_decomposition ( ucs2_t base)
static

◆ do_decomposition_sp()

uint64_t do_decomposition_sp ( unsigned int base_sp)
static

◆ do_precomposition()

ucs2_t do_precomposition ( unsigned int base,
unsigned int comb )
static

◆ do_precomposition_sp()

uint32_t do_precomposition_sp ( unsigned int base_sp,
unsigned int comb_sp )
static

◆ islower_sp()

int islower_sp ( uint32_t c_sp)

◆ islower_w()

int islower_w ( ucs2_t c)

◆ isupper_sp()

int isupper_sp ( uint32_t c_sp)

◆ isupper_w()

int isupper_w ( ucs2_t c)

◆ precompose_w()

size_t precompose_w ( ucs2_t * name,
size_t inplen,
ucs2_t * comp,
size_t * outlen )

◆ strcasechr_sp()

ucs2_t * strcasechr_sp ( const ucs2_t * s,
uint32_t c_sp )

◆ strcasechr_w()

ucs2_t * strcasechr_w ( const ucs2_t * s,
ucs2_t c )

◆ strcasecmp_w()

int strcasecmp_w ( const ucs2_t * a,
const ucs2_t * b )

◆ strcasestr_w()

ucs2_t * strcasestr_w ( const ucs2_t * s,
const ucs2_t * ins )

◆ strcat_w()

ucs2_t * strcat_w ( ucs2_t * dest,
const ucs2_t * src )

◆ strchr_w()

ucs2_t * strchr_w ( const ucs2_t * s,
ucs2_t c )

◆ strcmp_w()

int strcmp_w ( const ucs2_t * a,
const ucs2_t * b )

◆ strdup_w()

ucs2_t * strdup_w ( const ucs2_t * src)

◆ strlen_w()

size_t strlen_w ( const ucs2_t * src)

◆ strlower_w()

int strlower_w ( ucs2_t * s)

◆ strncasecmp_w()

int strncasecmp_w ( const ucs2_t * a,
const ucs2_t * b,
size_t len )

◆ strncat_w()

ucs2_t * strncat_w ( ucs2_t * dest,
const ucs2_t * src,
const size_t max )

◆ strncmp_w()

int strncmp_w ( const ucs2_t * a,
const ucs2_t * b,
size_t len )

◆ strncpy_w()

ucs2_t * strncpy_w ( ucs2_t * dest,
const ucs2_t * src,
const size_t max )

◆ strndup_w()

ucs2_t * strndup_w ( const ucs2_t * src,
size_t len )

◆ strnlen_w()

size_t strnlen_w ( const ucs2_t * src,
size_t max )

◆ strstr_w()

ucs2_t * strstr_w ( const ucs2_t * s,
const ucs2_t * ins )

◆ strupper_w()

int strupper_w ( ucs2_t * s)