Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
nls.h File Reference
#include <linux/init.h>

Go to the source code of this file.

Data Structures

struct  nls_table
 

Macros

#define MAX_WCHAR_T   0xffff
 
#define NLS_MAX_CHARSET_SIZE   6 /* for UTF-8 */
 
#define MODULE_ALIAS_NLS(name)   MODULE_ALIAS("nls_" __stringify(name))
 

Typedefs

typedef u16 wchar_t
 
typedef u32 unicode_t
 

Enumerations

enum  utf16_endian { UTF16_HOST_ENDIAN, UTF16_LITTLE_ENDIAN, UTF16_BIG_ENDIAN }
 

Functions

int register_nls (struct nls_table *)
 
int unregister_nls (struct nls_table *)
 
struct nls_tableload_nls (char *)
 
void unload_nls (struct nls_table *)
 
struct nls_tableload_nls_default (void)
 
int utf8_to_utf32 (const u8 *s, int len, unicode_t *pu)
 
int utf32_to_utf8 (unicode_t u, u8 *s, int maxlen)
 
int utf8s_to_utf16s (const u8 *s, int len, enum utf16_endian endian, wchar_t *pwcs, int maxlen)
 
int utf16s_to_utf8s (const wchar_t *pwcs, int len, enum utf16_endian endian, u8 *s, int maxlen)
 

Macro Definition Documentation

#define MAX_WCHAR_T   0xffff

Definition at line 19 of file nls.h.

#define MODULE_ALIAS_NLS (   name)    MODULE_ALIAS("nls_" __stringify(name))

Definition at line 104 of file nls.h.

#define NLS_MAX_CHARSET_SIZE   6 /* for UTF-8 */

Definition at line 37 of file nls.h.

Typedef Documentation

typedef u32 unicode_t

Definition at line 22 of file nls.h.

typedef u16 wchar_t

Definition at line 18 of file nls.h.

Enumeration Type Documentation

Enumerator:
UTF16_HOST_ENDIAN 
UTF16_LITTLE_ENDIAN 
UTF16_BIG_ENDIAN 

Definition at line 40 of file nls.h.

Function Documentation

struct nls_table* load_nls ( char )
read

Definition at line 289 of file nls_base.c.

struct nls_table* load_nls_default ( void  )
read

Definition at line 530 of file nls_base.c.

int register_nls ( struct nls_table )

Definition at line 235 of file nls_base.c.

void unload_nls ( struct nls_table )

Definition at line 294 of file nls_base.c.

int unregister_nls ( struct nls_table )

Definition at line 256 of file nls_base.c.

int utf16s_to_utf8s ( const wchar_t pwcs,
int  len,
enum utf16_endian  endian,
u8 s,
int  maxlen 
)

Definition at line 186 of file nls_base.c.

int utf32_to_utf8 ( unicode_t  u,
u8 s,
int  maxlen 
)

Definition at line 86 of file nls_base.c.

int utf8_to_utf32 ( const u8 s,
int  len,
unicode_t pu 
)

Definition at line 55 of file nls_base.c.

int utf8s_to_utf16s ( const u8 s,
int  len,
enum utf16_endian  endian,
wchar_t pwcs,
int  maxlen 
)

Definition at line 132 of file nls_base.c.