Classes | Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes

ACE_Codeset_Registry Class Reference

#include <Codeset_Registry.h>

Collaboration diagram for ACE_Codeset_Registry:
Collaboration graph
[legend]

List of all members.

Classes

struct  registry_entry

Public Types

enum  { max_charsets_ = 5 }

Static Public Member Functions

static int locale_to_registry (const ACE_CString &locale, ACE_CDR::ULong &codeset_id, ACE_CDR::UShort *=0, ACE_CDR::UShort **=0)
static int registry_to_locale (ACE_CDR::ULong codeset_id, ACE_CString &locale, ACE_CDR::UShort *=0, ACE_CDR::UShort **=0)
static int is_compatible (ACE_CDR::ULong codeset_id, ACE_CDR::ULong other)
static ACE_CDR::Short get_max_bytes (ACE_CDR::ULong codeset_id)

Static Private Member Functions

static int locale_to_registry_i (const ACE_CString &locale, ACE_CDR::ULong &codeset_id, ACE_CDR::UShort *=0, ACE_CDR::UShort **=0)
static int registry_to_locale_i (ACE_CDR::ULong codeset_id, ACE_CString &locale, ACE_CDR::UShort *=0, ACE_CDR::UShort **=0)
static int is_compatible_i (ACE_CDR::ULong codeset_id, ACE_CDR::ULong other)
static ACE_CDR::Short get_max_bytes_i (ACE_CDR::ULong codeset_id)

Static Private Attributes

static size_t const num_registry_entries_ = 9
static registry_entry const registry_db_ []

Member Enumeration Documentation

anonymous enum
Enumerator:
max_charsets_ 

Member Function Documentation

ACE_CDR::Short ACE_Codeset_Registry::get_max_bytes ( ACE_CDR::ULong  codeset_id  )  [inline, static]

Return the max number of bytes required to represent a single character. This wraps the rpc_rgy_get_max_bytes function.

ACE_CDR::Short ACE_Codeset_Registry::get_max_bytes_i ( ACE_CDR::ULong  codeset_id  )  [static, private]
int ACE_Codeset_Registry::is_compatible ( ACE_CDR::ULong  codeset_id,
ACE_CDR::ULong  other 
) [inline, static]

Tell if two codesets are compatible. This wraps the rpc_cs_char_set_compat_check function.

int ACE_Codeset_Registry::is_compatible_i ( ACE_CDR::ULong  codeset_id,
ACE_CDR::ULong  other 
) [static, private]
int ACE_Codeset_Registry::locale_to_registry ( const ACE_CString locale,
ACE_CDR::ULong codeset_id,
ACE_CDR::UShort num_sets = 0,
ACE_CDR::UShort **  char_sets = 0 
) [inline, static]

Based on a locale string, find the registry value and optional codeset collection. This wraps the dce_cs_loc_to_rgy function, or emulates it.

int ACE_Codeset_Registry::locale_to_registry_i ( const ACE_CString locale,
ACE_CDR::ULong codeset_id,
ACE_CDR::UShort num_sets = 0,
ACE_CDR::UShort **  char_sets = 0 
) [static, private]
int ACE_Codeset_Registry::registry_to_locale ( ACE_CDR::ULong  codeset_id,
ACE_CString locale,
ACE_CDR::UShort num_sets = 0,
ACE_CDR::UShort **  char_sets = 0 
) [inline, static]

Based on a registry value, find the locale string and optional codeset collection. This wraps the dce_cs_rgy_to_loc function, or emulates it.

int ACE_Codeset_Registry::registry_to_locale_i ( ACE_CDR::ULong  codeset_id,
ACE_CString locale,
ACE_CDR::UShort num_sets = 0,
ACE_CDR::UShort **  char_sets = 0 
) [static, private]

Member Data Documentation

size_t const ACE_Codeset_Registry::num_registry_entries_ = 9 [static, private]
Initial value:
{
  {"ISO/IEC 10646-1:1993; UCS-2, Level 1","UCS-2",0x00010100,1,{0x1000},2},
  {"ISO 8859-1:1987; Latin Alphabet No. 1","ISO8859_1",0x00010001,1,{0x0011},1},
  {"IBM-1047 (CCSID 01047); Latin-1 Open System","EBCDIC",0x10020417,1,{0x0011},1},
  {"ISO/IEC 10646-1:1993; UCS-4, Level 1","UCS-4",0x00010104,1,{0x1000},4},
  {"ISO/IEC 10646-1:1993; UTF-16, UCS Transformation Format 16-bit form","UTF-16",0x00010109,1,{0x1000},2},
  {"X/Open UTF-8; UCS Transformation Format 8 (UTF-8)","UTF-8",0x05010001,1,{0x1000},6},
  {"ISO/IEC 8859-5:1988; Latin-Cyrillic Alphabet","ISO-8859-5",0x00010005,1,{0x0015},1},
  {"IBM-1251 (CCSID 01251); MS Windows Cyrillic","CP1251",0x100204e3,1,{0x0015},1},
  {"IBM-855 (CCSID 04951); Cyrillic Personal Computer","CP855",0x10021357,1,{0x0015},1}
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines