2 //=============================================================================
4 * @file Codeset_Registry.inl
6 * ACE wrapper around access functions for the OSF's DCE codeset registry
7 * access functions - the inline functions either call the system supplied
8 * DCE based codeset registry function, or calls the emulation
10 * @author Phil Mesnier <mesnier_p@ociweb.com>
12 //=============================================================================
14 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 ACE_Codeset_Registry::locale_to_registry(const ACE_CString &locale,
19 ACE_CDR::ULong &codeset_id,
20 ACE_CDR::UShort *num_sets,
21 ACE_CDR::UShort **char_sets)
23 return ACE_Codeset_Registry::locale_to_registry_i (locale,
29 // based on a registry value, find the locale string and optional codeset
30 // collection. This wraps the dce_cs_rgy_to_loc function, or emulates it.
33 ACE_Codeset_Registry::registry_to_locale(ACE_CDR::ULong codeset_id,
35 ACE_CDR::UShort *num_sets,
36 ACE_CDR::UShort **char_sets)
38 return ACE_Codeset_Registry::registry_to_locale_i (codeset_id,
44 // Tell if two codesets are compatible. This wraps the
45 // rpc_cs_char_set_compat_check function.
48 ACE_Codeset_Registry::is_compatible (ACE_CDR::ULong codeset_id,
51 return ACE_Codeset_Registry::is_compatible_i (codeset_id,other);
54 // Return the max number of bytes required to represent a single character.
55 // This wraps the rpc_rgy_get_max_bytes function.
58 ACE_Codeset_Registry::get_max_bytes (ACE_CDR::ULong codeset_id)
60 return ACE_Codeset_Registry::get_max_bytes_i (codeset_id);
63 ACE_END_VERSIONED_NAMESPACE_DECL