~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/nls.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #include <linux/init.h>
  2 
  3 /* unicode character */
  4 typedef __u16 wchar_t;
  5 
  6 struct nls_table {
  7         char *charset;
  8         int (*uni2char) (wchar_t uni, unsigned char *out, int boundlen);
  9         int (*char2uni) (const unsigned char *rawstring, int boundlen,
 10                          wchar_t *uni);
 11         unsigned char *charset2lower;
 12         unsigned char *charset2upper;
 13         struct module *owner;
 14         struct nls_table *next;
 15 };
 16 
 17 /* this value hold the maximum octet of charset */
 18 #define NLS_MAX_CHARSET_SIZE 3
 19 
 20 /* nls.c */
 21 extern int register_nls(struct nls_table *);
 22 extern int unregister_nls(struct nls_table *);
 23 extern struct nls_table *load_nls(char *);
 24 extern void unload_nls(struct nls_table *);
 25 extern struct nls_table *load_nls_default(void);
 26 
 27 extern int utf8_mbtowc(wchar_t *, const __u8 *, int);
 28 extern int utf8_mbstowcs(wchar_t *, const __u8 *, int);
 29 extern int utf8_wctomb(__u8 *, wchar_t, int);
 30 extern int utf8_wcstombs(__u8 *, const wchar_t *, int);
 31 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.