Exemple #1
0
        public object get_SortKeyVariant(string bstrValue, LgCollatingOptions colopt)
        {
            EnsureCollator();
            byte[] pbKey = Icu.GetSortKey(m_pCollator, bstrValue);

            return(pbKey);
        }
Exemple #2
0
        public int Compare(string bstrValue1, string bstrValue2, LgCollatingOptions colopt)
        {
            EnsureCollator();
            byte[] pbKey1 = Icu.GetSortKey(m_pCollator, bstrValue1);
            byte[] pbKey2 = Icu.GetSortKey(m_pCollator, bstrValue2);

            return(CompareVariant(pbKey1, pbKey2, colopt));
        }