Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cifs_unicode.c File Reference
#include <linux/fs.h>
#include <linux/slab.h>
#include "cifs_unicode.h"
#include "cifs_uniupr.h"
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifs_debug.h"

Go to the source code of this file.

Functions

int cifs_utf16_bytes (const __le16 *from, int maxbytes, const struct nls_table *codepage)
 
int cifs_from_utf16 (char *to, const __le16 *from, int tolen, int fromlen, const struct nls_table *codepage, bool mapchar)
 
int cifs_strtoUTF16 (__le16 *to, const char *from, int len, const struct nls_table *codepage)
 
charcifs_strndup_from_utf16 (const char *src, const int maxlen, const bool is_unicode, const struct nls_table *codepage)
 
int cifsConvertToUTF16 (__le16 *target, const char *source, int srclen, const struct nls_table *cp, int mapChars)
 

Function Documentation

int cifs_from_utf16 ( char to,
const __le16 from,
int  tolen,
int  fromlen,
const struct nls_table codepage,
bool  mapchar 
)

Definition at line 147 of file cifs_unicode.c.

char* cifs_strndup_from_utf16 ( const char src,
const int  maxlen,
const bool  is_unicode,
const struct nls_table codepage 
)

Definition at line 257 of file cifs_unicode.c.

int cifs_strtoUTF16 ( __le16 to,
const char from,
int  len,
const struct nls_table codepage 
)

Definition at line 199 of file cifs_unicode.c.

int cifs_utf16_bytes ( const __le16 from,
int  maxbytes,
const struct nls_table codepage 
)

Definition at line 40 of file cifs_unicode.c.

int cifsConvertToUTF16 ( __le16 target,
const char source,
int  srclen,
const struct nls_table cp,
int  mapChars 
)

Definition at line 290 of file cifs_unicode.c.