internal CompareInfo(CultureInfo culture)
 {
     m_name = culture.m_name;
     m_sortName = culture.SortName;
     m_sortHandle = Interop.GlobalizationInterop.GetSortHandle(System.Text.Encoding.UTF8.GetBytes(m_sortName));
     m_isAsciiEqualityOrdinal = (m_sortName == "en-US" || m_sortName == "");
 }
Exemple #2
0
 internal CompareInfo(CultureInfo culture)
 {
     m_name                   = culture.m_name;
     m_sortName               = culture.SortName;
     m_sortHandle             = Interop.GlobalizationInterop.GetSortHandle(GetNullTerminatedUtf8String(m_sortName));
     m_isAsciiEqualityOrdinal = (m_sortName == "en-US" || m_sortName == "");
 }
 internal CompareInfo(CultureInfo culture)
 {
     m_name = culture.m_name;
     m_sortName = culture.SortName;
     m_sortHandle = Interop.GlobalizationInterop.GetSortHandle(GetNullTerminatedUtf8String(m_sortName));
     m_isAsciiEqualityOrdinal = (m_sortName == "en-US" || m_sortName == "");
 }
 internal CompareInfo(CultureInfo culture)
 {
     m_name                   = culture.m_name;
     m_sortName               = culture.SortName;
     m_sortHandle             = Interop.GlobalizationInterop.GetSortHandle(System.Text.Encoding.UTF8.GetBytes(m_sortName));
     m_isAsciiEqualityOrdinal = (m_sortName == "en-US" || m_sortName == "");
 }
 private void InitSort(CultureInfo culture)
 {
     _sortName = culture.SortName;
     _sortHandle = Interop.GlobalizationInterop.GetSortHandle(GetNullTerminatedUtf8String(_sortName));
     _isAsciiEqualityOrdinal = (_sortName == "en-US" || _sortName == "");
 }
Exemple #6
0
 internal CompareInfo(CultureInfo culture)
 {
     m_name = culture.m_name;
     m_sortName = culture.SortName;
     m_sortHandle = Interop.GlobalizationInterop.GetSortHandle(System.Text.Encoding.UTF8.GetBytes(m_sortName));
 }
Exemple #7
0
 private void InitSort(CultureInfo culture)
 {
     _sortName               = culture.SortName;
     _sortHandle             = Interop.GlobalizationInterop.GetSortHandle(GetNullTerminatedUtf8String(_sortName));
     _isAsciiEqualityOrdinal = (_sortName == "en-US" || _sortName == "");
 }
Exemple #8
0
 internal CompareInfo(CultureInfo culture)
 {
     m_name       = culture.m_name;
     m_sortName   = culture.SortName;
     m_sortHandle = Interop.GlobalizationInterop.GetSortHandle(System.Text.Encoding.UTF8.GetBytes(m_sortName));
 }