Beispiel #1
0
 internal unsafe void ChangeCase(char *src, int srcLen, char *dstBuffer, int dstBufferCapacity, bool bToUpper)
 {
     if (IsInvariant)
     {
         Interop.GlobalizationInterop.ChangeCaseInvariant(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
     }
     else
     {
         if (m_needsTurkishCasing == TurkishCasing.NotInitialized)
         {
             m_needsTurkishCasing = NeedsTurkishCasing(m_textInfoName) ? TurkishCasing.Needed : TurkishCasing.NotNeeded;
         }
         if (m_needsTurkishCasing == TurkishCasing.Needed)
         {
             Interop.GlobalizationInterop.ChangeCaseTurkish(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
         }
         else
         {
             Interop.GlobalizationInterop.ChangeCase(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
         }
     }
 }
Beispiel #2
0
 private void FinishInitialization(string textInfoName)
 {
     m_needsTurkishCasing = TurkishCasing.NotInitialized;
 }
Beispiel #3
0
 private void FinishInitialization(string textInfoName)
 {
     m_needsTurkishCasing = TurkishCasing.NotInitialized;
 }
Beispiel #4
0
 internal unsafe void ChangeCase(char* src, int srcLen, char* dstBuffer, int dstBufferCapacity, bool bToUpper)
 {
     if (IsInvariant)
     {
         Interop.GlobalizationInterop.ChangeCaseInvariant(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
     }
     else
     {
         if (m_needsTurkishCasing == TurkishCasing.NotInitialized)
         {
             m_needsTurkishCasing = NeedsTurkishCasing(m_textInfoName) ? TurkishCasing.Needed : TurkishCasing.NotNeeded;
         }
         if ( m_needsTurkishCasing == TurkishCasing.Needed)
         {
             Interop.GlobalizationInterop.ChangeCaseTurkish(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
         }
         else
         {
             Interop.GlobalizationInterop.ChangeCase(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
         }
     }
 }