Atmel Software Framework

unistr.h File Reference
#include "btypes.h"

Macros

#define UNISTR_CHARSET_ASCII   "ASCII"
 
#define UNISTR_CHARSET_GSM   "GSM"
 
#define UNISTR_CHARSET_ISO_8859_1   "ISO-8859-1"
 
#define UNISTR_CHARSET_UCS2   "UCS2"
 
#define UNISTR_CHARSET_UTF16   "UTF-16"
 
#define UNISTR_CHARSET_UTF7   "UTF-7"
 
#define UNISTR_CHARSET_UTF8   "UTF-8"
 
#define UNISTR_COLLATION_BASIC_LATIN
 
#define UNISTR_COLLATION_CYRILLIC
 
#define UNISTR_COLLATION_GREEK
 
#define UNISTR_COLLATION_LATIN1_SUPPLEMENT
 
#define UNISTR_COLLATION_LATIN_EXTENDED_A
 
#define UNISTR_COLLATION_LATIN_EXTENDED_B
 
#define UNISTR_PANIC_LENGTH   512
 

Typedefs

typedef uint32 TUNISTRChar
 
typedef TBStatus TUNISTRConvUtf16Cb (TString charset, TUNISTREncoding encoding, uint8 *pFrom, uint16 toSize, TUNISTRUtf16String to)
 
typedef uint8 TUNISTREncoding
 
typedef uint16TUNISTRUtf16String
 

Enumerations

enum  TUNISTREncodingEnum {
  UNISTR_ENCODING_NONE = 0x00,
  UNISTR_ENCODING_QUOTED_PRINTABLE = 0x81,
  UNISTR_ENCODING_BASE64 = 0x82,
  UNISTR_ENCODING_8BIT = 0x83,
  UNISTR_ENCODING_HEX_IN_ASCII = 0xC0,
  UNISTR_ENCODING_MSB_WORD = 0xC1
}
 

Functions

boolean UNISTRGetNextChar (TUNISTRUtf16String str, TUNISTRChar *pUnicode, uint8 *pOffset)
 
uint32 UNISTRGetWeight (TUNISTRChar unicode)
 
void UNISTRInit (void)
 
void UNISTRRegisterStrConv (TUNISTRConvUtf16Cb *pStrConvCb)
 
void UNISTRStrAppend (TUNISTRUtf16String pTo, const TUNISTRUtf16String pFrom, uint16 size)
 
void UNISTRStrClr (TUNISTRUtf16String str)
 
int8 UNISTRStrCmp (const TUNISTRUtf16String s1, const TUNISTRUtf16String s2)
 
void UNISTRStrCpy (TUNISTRUtf16String pTo, const TUNISTRUtf16String pFrom, uint16 size)
 
uint16 UNISTRStrLen (const TUNISTRUtf16String str)
 
boolean UNISTRToUtf16 (TString charset, TUNISTREncoding encoding, uint8 *pFrom, TUNISTRUtf16String pTo, uint16 size)
 
boolean UNISTRToUtf16Nbo (TString charset, TUNISTREncoding encoding, uint8 *pFrom, TUNISTRUtf16String pTo, uint16 size)
 
boolean UNISTRToUtf8 (TString charset, TUNISTREncoding encoding, uint8 *pFrom, uint8 *pTo, uint16 size)
 

#define UNISTR_CHARSET_ASCII   "ASCII"

Referenced by AppEngineInit().

#define UNISTR_CHARSET_GSM   "GSM"
#define UNISTR_CHARSET_ISO_8859_1   "ISO-8859-1"
#define UNISTR_CHARSET_UCS2   "UCS2"
#define UNISTR_CHARSET_UTF16   "UTF-16"
#define UNISTR_CHARSET_UTF7   "UTF-7"
#define UNISTR_CHARSET_UTF8   "UTF-8"
#define UNISTR_COLLATION_BASIC_LATIN
#define UNISTR_COLLATION_CYRILLIC
#define UNISTR_COLLATION_GREEK
#define UNISTR_COLLATION_LATIN1_SUPPLEMENT
#define UNISTR_COLLATION_LATIN_EXTENDED_A
#define UNISTR_COLLATION_LATIN_EXTENDED_B
#define UNISTR_PANIC_LENGTH   512

typedef TBStatus TUNISTRConvUtf16Cb(TString charset, TUNISTREncoding encoding, uint8 *pFrom, uint16 toSize, TUNISTRUtf16String to)

Enumerator
UNISTR_ENCODING_NONE 
UNISTR_ENCODING_QUOTED_PRINTABLE 
UNISTR_ENCODING_BASE64 
UNISTR_ENCODING_8BIT 
UNISTR_ENCODING_HEX_IN_ASCII 
UNISTR_ENCODING_MSB_WORD 

boolean UNISTRGetNextChar ( TUNISTRUtf16String  str,
TUNISTRChar pUnicode,
uint8 pOffset 
)
uint32 UNISTRGetWeight ( TUNISTRChar  unicode)
void UNISTRInit ( void  )
void UNISTRRegisterStrConv ( TUNISTRConvUtf16Cb pStrConvCb)
void UNISTRStrAppend ( TUNISTRUtf16String  pTo,
const TUNISTRUtf16String  pFrom,
uint16  size 
)
void UNISTRStrClr ( TUNISTRUtf16String  str)
int8 UNISTRStrCmp ( const TUNISTRUtf16String  s1,
const TUNISTRUtf16String  s2 
)
void UNISTRStrCpy ( TUNISTRUtf16String  pTo,
const TUNISTRUtf16String  pFrom,
uint16  size 
)
uint16 UNISTRStrLen ( const TUNISTRUtf16String  str)
boolean UNISTRToUtf16 ( TString  charset,
TUNISTREncoding  encoding,
uint8 pFrom,
TUNISTRUtf16String  pTo,
uint16  size 
)

Referenced by AppEngineInit().

boolean UNISTRToUtf16Nbo ( TString  charset,
TUNISTREncoding  encoding,
uint8 pFrom,
TUNISTRUtf16String  pTo,
uint16  size 
)
boolean UNISTRToUtf8 ( TString  charset,
TUNISTREncoding  encoding,
uint8 pFrom,
uint8 pTo,
uint16  size 
)