ACE_Codeset_Registry Class Reference

#include <Codeset_Registry.h>

Collaboration diagram for ACE_Codeset_Registry:

Collaboration graph
[legend]

List of all members.

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_ = 4
static
registry_entry const 
registry_db_ []

Classes

struct  registry_entry


Member Enumeration Documentation

anonymous enum

Enumerator:
max_charsets_ 


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE 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 
) [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.

ACE_INLINE 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 
) [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.

ACE_INLINE int ACE_Codeset_Registry::is_compatible ( ACE_CDR::ULong  codeset_id,
ACE_CDR::ULong  other 
) [static]

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

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

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

ACE_BEGIN_VERSIONED_NAMESPACE_DECL 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_i ( ACE_CDR::ULong  codeset_id,
ACE_CString locale,
ACE_CDR::UShort num_sets = 0,
ACE_CDR::UShort **  char_sets = 0 
) [static, private]

int ACE_Codeset_Registry::is_compatible_i ( ACE_CDR::ULong  codeset_id,
ACE_CDR::ULong  other 
) [static, private]

ACE_CDR::Short ACE_Codeset_Registry::get_max_bytes_i ( ACE_CDR::ULong  codeset_id  )  [static, private]


Member Data Documentation

size_t const ACE_Codeset_Registry::num_registry_entries_ = 4 [static, private]

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Codeset_Registry::registry_entry const ACE_Codeset_Registry::registry_db_ [static, private]

Initial value:

{
  {"ISO 8859-1:1987; Latin Alphabet No. 1","ASCII",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","Unicode",0x00010109,1,{0x1000},2}
}


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 03:56:33 2007 for ACE by  doxygen 1.5.3