CBMC
wcwidth.c File Reference
#include <wchar.h>
+ Include dependency graph for wcwidth.c:

Go to the source code of this file.

Classes

struct  interval
 

Functions

static int bisearch (wchar_t ucs, const struct interval *table, int max)
 
int mk_wcwidth (wchar_t ucs)
 
int mk_wcswidth (const wchar_t *pwcs, size_t n)
 
int mk_wcwidth_cjk (wchar_t ucs)
 
int mk_wcswidth_cjk (const wchar_t *pwcs, size_t n)
 

Function Documentation

◆ bisearch()

static int bisearch ( wchar_t  ucs,
const struct interval table,
int  max 
)
static

Definition at line 70 of file wcwidth.c.

◆ mk_wcswidth()

int mk_wcswidth ( const wchar_t *  pwcs,
size_t  n 
)

Definition at line 207 of file wcwidth.c.

◆ mk_wcswidth_cjk()

int mk_wcswidth_cjk ( const wchar_t *  pwcs,
size_t  n 
)

Definition at line 298 of file wcwidth.c.

◆ mk_wcwidth()

int mk_wcwidth ( wchar_t  ucs)

Definition at line 122 of file wcwidth.c.

◆ mk_wcwidth_cjk()

int mk_wcwidth_cjk ( wchar_t  ucs)

Definition at line 230 of file wcwidth.c.