Back to index

glibc  2.9
Functions | Variables
wcwidth.h File Reference
#include <wchar.h>
#include <wctype.h>
#include "../wctype/wchar-lookup.h"
#include "../locale/localeinfo.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


static __inline int internal_wcwidth (wchar_t wc)


const char *__ctype32_width attribute_hidden

Function Documentation

static __inline int internal_wcwidth ( wchar_t  wc) [static]

Definition at line 30 of file wcwidth.h.

  unsigned char res;

  /* The tables have been prepared in such a way that
     1. wc == L'\0' yields res = 0,
     2. !iswprint (wc) implies res = '\xff'.  */
  res = wcwidth_table_lookup (_NL_CURRENT (LC_CTYPE, _NL_CTYPE_WIDTH), wc);

  return res == (unsigned char) '\xff' ? -1 : (int) res;

Here is the caller graph for this function:

Variable Documentation

const char* __ctype32_width attribute_hidden

Definition at line 25 of file init-first.c.