Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Enumeraciones | Funciones | Variables
Referencia del Archivo src/libpq/include/mb/pg_wchar.h
#include <sys/types.h>

Ir al código fuente de este archivo.

Clases

struct  pg_encname
struct  pg_enc2name
struct  pg_wchar_tbl
struct  pg_utf_to_local
struct  pg_local_to_utf

'defines'

#define SS2   0x8e
#define SS3   0x8f
#define ISSJISHEAD(c)   (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0 && (c) <= 0xfc))
#define ISSJISTAIL(c)   (((c) >= 0x40 && (c) <= 0x7e) || ((c) >= 0x80 && (c) <= 0xfc))
#define IS_LC1(c)   ((unsigned char)(c) >= 0x81 && (unsigned char)(c) <= 0x8d)
#define IS_LCPRV1(c)   ((unsigned char)(c) == 0x9a || (unsigned char)(c) == 0x9b)
#define IS_LC2(c)   ((unsigned char)(c) >= 0x90 && (unsigned char)(c) <= 0x99)
#define IS_LCPRV2(c)   ((unsigned char)(c) == 0x9c || (unsigned char)(c) == 0x9d)
#define LC_ISO8859_1   0x81
#define LC_ISO8859_2   0x82
#define LC_ISO8859_3   0x83
#define LC_ISO8859_4   0x84
#define LC_TIS620   0x85
#define LC_ISO8859_7   0x86
#define LC_ISO8859_6   0x87
#define LC_ISO8859_8   0x88
#define LC_JISX0201K   0x89
#define LC_JISX0201R   0x8a
#define LC_KOI8_R   0x8b
#define LC_KOI8_U   0x8b
#define LC_ISO8859_5   0x8c
#define LC_ISO8859_9   0x8d
#define CONTROL_1   0x8f
#define LC_JISX0208_1978   0x90
#define LC_GB2312_80   0x91
#define LC_JISX0208   0x92
#define LC_KS5601   0x93
#define LC_JISX0212   0x94
#define LC_CNS11643_1   0x95
#define LC_CNS11643_2   0x96
#define LC_BIG5_1   0x98
#define LC_BIG5_2   0x99
#define LC_SISHENG   0xa0
#define LC_IPA   0xa1
#define LC_VISCII_LOWER   0xa2
#define LC_VISCII_UPPER   0xa3
#define LC_ARABIC_DIGIT   0xa4
#define LC_ARABIC_1_COLUMN   0xa5
#define LC_ASCII_RIGHT_TO_LEFT   0xa6
#define LC_LAO   0xa7
#define LC_ARABIC_2_COLUMN   0xa8
#define LC_INDIAN_1_COLUMN   0xf0
#define LC_TIBETAN_1_COLUMN   0xf1
#define LC_ETHIOPIC   0xf5
#define LC_CNS11643_3   0xf6
#define LC_CNS11643_4   0xf7
#define LC_CNS11643_5   0xf8
#define LC_CNS11643_6   0xf9
#define LC_CNS11643_7   0xfa
#define LC_INDIAN_2_COLUMN   0xfb
#define LC_TIBETAN   0xfc
#define PG_ENCODING_BE_LAST   PG_WIN1250
#define PG_VALID_BE_ENCODING(_enc)   ((_enc) >= 0 && (_enc) <= PG_ENCODING_BE_LAST)
#define PG_ENCODING_IS_CLIENT_ONLY(_enc)   ((_enc) > PG_ENCODING_BE_LAST && (_enc) < _PG_LAST_ENCODING_)
#define PG_VALID_ENCODING(_enc)   ((_enc) >= 0 && (_enc) < _PG_LAST_ENCODING_)
#define PG_VALID_FE_ENCODING(_enc)   PG_VALID_ENCODING(_enc)

'typedefs'

typedef unsigned int pg_wchar
typedef enum pg_enc pg_enc
typedef struct pg_encname pg_encname
typedef struct pg_enc2name pg_enc2name
typedef int(* mb2wchar_with_len_converter )(const unsigned char *from, pg_wchar *to, int len)
typedef int(* mblen_converter )(const unsigned char *mbstr)
typedef int(* mbdisplaylen_converter )(const unsigned char *mbstr)
typedef int(* mbverifier )(const unsigned char *mbstr, int len)

Enumeraciones

enum  pg_enc {
  PG_SQL_ASCII = 0, PG_EUC_JP, PG_EUC_CN, PG_EUC_KR,
  PG_EUC_TW, PG_JOHAB, PG_UTF8, PG_MULE_INTERNAL,
  PG_LATIN1, PG_LATIN2, PG_LATIN3, PG_LATIN4,
  PG_LATIN5, PG_LATIN6, PG_LATIN7, PG_LATIN8,
  PG_LATIN9, PG_LATIN10, PG_WIN1256, PG_WIN1258,
  PG_WIN866, PG_WIN874, PG_KOI8R, PG_WIN1251,
  PG_WIN1252, PG_ISO_8859_5, PG_ISO_8859_6, PG_ISO_8859_7,
  PG_ISO_8859_8, PG_WIN1250, PG_SJIS, PG_BIG5,
  PG_GBK, PG_UHC, PG_GB18030, _PG_LAST_ENCODING_
}

Funciones

pg_encnamepg_char_to_encname_struct (const char *name)
int pg_char_to_encoding (const char *s)
const char * pg_encoding_to_char (int encoding)
int pg_mb2wchar (const char *from, pg_wchar *to)
int pg_mb2wchar_with_len (const char *from, pg_wchar *to, int len)
int pg_char_and_wchar_strcmp (const char *s1, const pg_wchar *s2)
int pg_wchar_strncmp (const pg_wchar *s1, const pg_wchar *s2, size_t n)
int pg_char_and_wchar_strncmp (const char *s1, const pg_wchar *s2, size_t n)
size_t pg_wchar_strlen (const pg_wchar *wstr)
int pg_mblen (const char *mbstr)
int pg_dsplen (const char *mbstr)
int pg_encoding_mblen (int encoding, const char *mbstr)
int pg_encoding_dsplen (int encoding, const char *mbstr)
int pg_encoding_verifymb (int encoding, const char *mbstr, int len)
int pg_mule_mblen (const unsigned char *mbstr)
int pg_mic_mblen (const unsigned char *mbstr)
int pg_mbstrlen (const char *mbstr)
int pg_mbstrlen_with_len (const char *mbstr, int len)
int pg_mbcliplen (const char *mbstr, int len, int limit)
int pg_mbcharcliplen (const char *mbstr, int len, int imit)
int pg_encoding_max_length (int encoding)
int pg_database_encoding_max_length (void)
void SetDefaultClientEncoding (void)
int SetClientEncoding (int encoding, bool doit)
void InitializeClientEncoding (void)
int pg_get_client_encoding (void)
const char * pg_get_client_encoding_name (void)
void SetDatabaseEncoding (int encoding)
int GetDatabaseEncoding (void)
const char * GetDatabaseEncodingName (void)
int pg_valid_client_encoding (const char *name)
int pg_valid_server_encoding (const char *name)
int pg_utf_mblen (const unsigned char *)
unsigned char * pg_do_encoding_conversion (unsigned char *src, int len, int src_encoding, int dest_encoding)
char * pg_client_to_server (const char *s, int len)
char * pg_server_to_client (const char *s, int len)
unsigned short BIG5toCNS (unsigned short big5, unsigned char *lc)
unsigned short CNStoBIG5 (unsigned short cns, unsigned char lc)
void LocalToUtf (const unsigned char *iso, unsigned char *utf, const pg_local_to_utf *map, int size, int encoding, int len)
void UtfToLocal (const unsigned char *utf, unsigned char *iso, const pg_utf_to_local *map, int size, int encoding, int len)
bool pg_verifymbstr (const char *mbstr, int len, bool noError)
bool pg_verify_mbstr (int encoding, const char *mbstr, int len, bool noError)
void report_invalid_encoding (int encoding, const char *mbstr, int len)
void report_untranslatable_char (int src_encoding, int dest_encoding, const char *mbstr, int len)
void pg_ascii2mic (const unsigned char *l, unsigned char *p, int len)
void pg_mic2ascii (const unsigned char *mic, unsigned char *p, int len)
void latin2mic (const unsigned char *l, unsigned char *p, int len, int lc, int encoding)
void mic2latin (const unsigned char *mic, unsigned char *p, int len, int lc, int encoding)
void latin2mic_with_table (const unsigned char *l, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
void mic2latin_with_table (const unsigned char *mic, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
bool pg_utf8_islegal (const unsigned char *source, int length)

Variables

pg_encname pg_encname_tbl []
unsigned int pg_encname_tbl_sz
pg_enc2name pg_enc2name_tbl []
pg_wchar_tbl pg_wchar_table []

Documentación de los 'defines'

#define CONTROL_1   0x8f
#define IS_LC1 (   c)    ((unsigned char)(c) >= 0x81 && (unsigned char)(c) <= 0x8d)
#define IS_LC2 (   c)    ((unsigned char)(c) >= 0x90 && (unsigned char)(c) <= 0x99)
#define IS_LCPRV1 (   c)    ((unsigned char)(c) == 0x9a || (unsigned char)(c) == 0x9b)
#define IS_LCPRV2 (   c)    ((unsigned char)(c) == 0x9c || (unsigned char)(c) == 0x9d)
#define ISSJISHEAD (   c)    (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0 && (c) <= 0xfc))
#define ISSJISTAIL (   c)    (((c) >= 0x40 && (c) <= 0x7e) || ((c) >= 0x80 && (c) <= 0xfc))
#define LC_ARABIC_1_COLUMN   0xa5
#define LC_ARABIC_2_COLUMN   0xa8
#define LC_ARABIC_DIGIT   0xa4
#define LC_ASCII_RIGHT_TO_LEFT   0xa6
#define LC_BIG5_1   0x98
#define LC_BIG5_2   0x99
#define LC_CNS11643_1   0x95
#define LC_CNS11643_2   0x96
#define LC_CNS11643_3   0xf6
#define LC_CNS11643_4   0xf7
#define LC_CNS11643_5   0xf8
#define LC_CNS11643_6   0xf9
#define LC_CNS11643_7   0xfa
#define LC_ETHIOPIC   0xf5
#define LC_GB2312_80   0x91
#define LC_INDIAN_1_COLUMN   0xf0
#define LC_INDIAN_2_COLUMN   0xfb
#define LC_IPA   0xa1
#define LC_ISO8859_1   0x81
#define LC_ISO8859_2   0x82
#define LC_ISO8859_3   0x83
#define LC_ISO8859_4   0x84
#define LC_ISO8859_5   0x8c
#define LC_ISO8859_6   0x87
#define LC_ISO8859_7   0x86
#define LC_ISO8859_8   0x88
#define LC_ISO8859_9   0x8d
#define LC_JISX0201K   0x89
#define LC_JISX0201R   0x8a
#define LC_JISX0208   0x92
#define LC_JISX0208_1978   0x90
#define LC_JISX0212   0x94
#define LC_KOI8_R   0x8b
#define LC_KOI8_U   0x8b
#define LC_KS5601   0x93
#define LC_LAO   0xa7
#define LC_SISHENG   0xa0
#define LC_TIBETAN   0xfc
#define LC_TIBETAN_1_COLUMN   0xf1
#define LC_TIS620   0x85
#define LC_VISCII_LOWER   0xa2
#define LC_VISCII_UPPER   0xa3
#define PG_ENCODING_BE_LAST   PG_WIN1250
#define PG_ENCODING_IS_CLIENT_ONLY (   _enc)    ((_enc) > PG_ENCODING_BE_LAST && (_enc) < _PG_LAST_ENCODING_)
#define PG_VALID_BE_ENCODING (   _enc)    ((_enc) >= 0 && (_enc) <= PG_ENCODING_BE_LAST)
#define PG_VALID_ENCODING (   _enc)    ((_enc) >= 0 && (_enc) < _PG_LAST_ENCODING_)
#define PG_VALID_FE_ENCODING (   _enc)    PG_VALID_ENCODING(_enc)
#define SS2   0x8e
#define SS3   0x8f

Documentación de los 'typedefs'

typedef int(* mb2wchar_with_len_converter)(const unsigned char *from, pg_wchar *to, int len)
typedef int(* mbdisplaylen_converter)(const unsigned char *mbstr)
typedef int(* mblen_converter)(const unsigned char *mbstr)
typedef int(* mbverifier)(const unsigned char *mbstr, int len)
typedef enum pg_enc pg_enc
typedef struct pg_enc2name pg_enc2name
typedef struct pg_encname pg_encname
typedef unsigned int pg_wchar

Documentación de las enumeraciones

enum pg_enc
Valores de enumeraciones:
PG_SQL_ASCII 
PG_EUC_JP 
PG_EUC_CN 
PG_EUC_KR 
PG_EUC_TW 
PG_JOHAB 
PG_UTF8 
PG_MULE_INTERNAL 
PG_LATIN1 
PG_LATIN2 
PG_LATIN3 
PG_LATIN4 
PG_LATIN5 
PG_LATIN6 
PG_LATIN7 
PG_LATIN8 
PG_LATIN9 
PG_LATIN10 
PG_WIN1256 
PG_WIN1258 
PG_WIN866 
PG_WIN874 
PG_KOI8R 
PG_WIN1251 
PG_WIN1252 
PG_ISO_8859_5 
PG_ISO_8859_6 
PG_ISO_8859_7 
PG_ISO_8859_8 
PG_WIN1250 
PG_SJIS 
PG_BIG5 
PG_GBK 
PG_UHC 
PG_GB18030 
_PG_LAST_ENCODING_ 

Documentación de las funciones

unsigned short BIG5toCNS ( unsigned short  big5,
unsigned char *  lc 
)
unsigned short CNStoBIG5 ( unsigned short  cns,
unsigned char  lc 
)
int GetDatabaseEncoding ( void  )
const char* GetDatabaseEncodingName ( void  )
void InitializeClientEncoding ( void  )
void latin2mic ( const unsigned char *  l,
unsigned char *  p,
int  len,
int  lc,
int  encoding 
)
void latin2mic_with_table ( const unsigned char *  l,
unsigned char *  p,
int  len,
int  lc,
int  encoding,
const unsigned char *  tab 
)
void LocalToUtf ( const unsigned char *  iso,
unsigned char *  utf,
const pg_local_to_utf map,
int  size,
int  encoding,
int  len 
)
void mic2latin ( const unsigned char *  mic,
unsigned char *  p,
int  len,
int  lc,
int  encoding 
)
void mic2latin_with_table ( const unsigned char *  mic,
unsigned char *  p,
int  len,
int  lc,
int  encoding,
const unsigned char *  tab 
)
void pg_ascii2mic ( const unsigned char *  l,
unsigned char *  p,
int  len 
)
int pg_char_and_wchar_strcmp ( const char *  s1,
const pg_wchar s2 
)
int pg_char_and_wchar_strncmp ( const char *  s1,
const pg_wchar s2,
size_t  n 
)
pg_encname* pg_char_to_encname_struct ( const char *  name)
int pg_char_to_encoding ( const char *  s)
char* pg_client_to_server ( const char *  s,
int  len 
)
int pg_database_encoding_max_length ( void  )
unsigned char* pg_do_encoding_conversion ( unsigned char *  src,
int  len,
int  src_encoding,
int  dest_encoding 
)
int pg_dsplen ( const char *  mbstr)
int pg_encoding_dsplen ( int  encoding,
const char *  mbstr 
)
int pg_encoding_max_length ( int  encoding)
int pg_encoding_mblen ( int  encoding,
const char *  mbstr 
)
const char* pg_encoding_to_char ( int  encoding)
int pg_encoding_verifymb ( int  encoding,
const char *  mbstr,
int  len 
)
int pg_get_client_encoding ( void  )
const char* pg_get_client_encoding_name ( void  )
int pg_mb2wchar ( const char *  from,
pg_wchar to 
)
int pg_mb2wchar_with_len ( const char *  from,
pg_wchar to,
int  len 
)
int pg_mbcharcliplen ( const char *  mbstr,
int  len,
int  imit 
)
int pg_mbcliplen ( const char *  mbstr,
int  len,
int  limit 
)
int pg_mblen ( const char *  mbstr)
int pg_mbstrlen ( const char *  mbstr)
int pg_mbstrlen_with_len ( const char *  mbstr,
int  len 
)
void pg_mic2ascii ( const unsigned char *  mic,
unsigned char *  p,
int  len 
)
int pg_mic_mblen ( const unsigned char *  mbstr)
int pg_mule_mblen ( const unsigned char *  mbstr)
char* pg_server_to_client ( const char *  s,
int  len 
)
bool pg_utf8_islegal ( const unsigned char *  source,
int  length 
)
int pg_utf_mblen ( const unsigned char *  )
int pg_valid_client_encoding ( const char *  name)
int pg_valid_server_encoding ( const char *  name)
bool pg_verify_mbstr ( int  encoding,
const char *  mbstr,
int  len,
bool  noError 
)
bool pg_verifymbstr ( const char *  mbstr,
int  len,
bool  noError 
)
size_t pg_wchar_strlen ( const pg_wchar wstr)
int pg_wchar_strncmp ( const pg_wchar s1,
const pg_wchar s2,
size_t  n 
)
void report_invalid_encoding ( int  encoding,
const char *  mbstr,
int  len 
)
void report_untranslatable_char ( int  src_encoding,
int  dest_encoding,
const char *  mbstr,
int  len 
)
int SetClientEncoding ( int  encoding,
bool  doit 
)
void SetDatabaseEncoding ( int  encoding)
void SetDefaultClientEncoding ( void  )
void UtfToLocal ( const unsigned char *  utf,
unsigned char *  iso,
const pg_utf_to_local map,
int  size,
int  encoding,
int  len 
)

Documentación de las variables

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'