Exemple #1
0
 /// <summary>
 /// creates the tagged codeset component to insert into an IOR
 /// </summary>
 /// <returns></returns>
 internal static TaggedComponent CreateCodesetComponent(Codec codec,
                                                        CharSet nativeCharSet,
                                                        WCharSet nativeWCharSet)
 {
     return(CreateCodesetComponent(codec, (int)nativeCharSet,
                                   (int)nativeWCharSet));
 }
Exemple #2
0
 /// <summary>
 /// overrides the default char set and the default wcharset to use.
 /// </summary>
 internal static void OverrideDefaultCharSets(CharSet defaultCharSet, WCharSet defaultWCharSet)
 {
     lock (s_initLock) {
         if ((s_defaultCharSet != UNINITALIZED_CHAR_SET) || (s_defaultWCharSet != UNINITALIZED_WCHAR_SET))
         {
             // only settable once, before first used.
             throw new BAD_INV_ORDER(690, CompletionStatus.Completed_MayBe);
         }
         s_defaultCharSet  = (int)defaultCharSet;
         s_defaultWCharSet = (int)defaultWCharSet;
     }
 }
 /// <summary>
 /// creates the tagged codeset component to insert into an IOR
 /// </summary>
 /// <returns></returns>
 internal static TaggedComponent CreateCodesetComponent(Codec codec, 
                                                        CharSet nativeCharSet,
                                                        WCharSet nativeWCharSet) {
     return CreateCodesetComponent(codec, (int)nativeCharSet,
                                   (int)nativeWCharSet);
 }
 /// <summary>
 /// overrides the default char set and the default wcharset to use.
 /// </summary>
 internal static void OverrideDefaultCharSets(CharSet defaultCharSet, WCharSet defaultWCharSet) {
     lock(s_initLock) {
         if ((s_defaultCharSet != UNINITALIZED_CHAR_SET) || (s_defaultWCharSet != UNINITALIZED_WCHAR_SET)) {
             // only settable once, before first used.
             throw new BAD_INV_ORDER(690, CompletionStatus.Completed_MayBe);
         }
         s_defaultCharSet = (int)defaultCharSet;
         s_defaultWCharSet = (int)defaultWCharSet;
     }
 }