src/hbcore/i18n/hbstringutil.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 7 923ff622b8b9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    43         MatchingTable = 32,  
    43         MatchingTable = 32,  
    44         IgnoreCombining = 64 
    44         IgnoreCombining = 64 
    45     };
    45     };
    46     Q_DECLARE_FLAGS(Options, Option)
    46     Q_DECLARE_FLAGS(Options, Option)
    47     
    47     
    48     static int collationMethods(); // Will be deprecated 
       
    49     static int matchC( const QString &strFrom, const QString &strToMatch, 
    48     static int matchC( const QString &strFrom, const QString &strToMatch, 
    50                        int maxLevel = 0, Options flags = Default, 
    49                        int maxLevel = 0, Options flags = Default, 
    51                        int wildChar = '?', int wildSequenceChar = '*', int escapeChar = '\\' );
    50                        int wildChar = '?', int wildSequenceChar = '*', int escapeChar = '\\' );
    52     static int compareC( const QString &string1, const QString &string2, 
    51     static int compareC( const QString &string1, const QString &string2, 
    53                          int maxLevel = 3, Options flags = Default );
    52                          int maxLevel = 3, Options flags = Default );
    55                       const QString &strToFind, 
    54                       const QString &strToFind, 
    56                       int maxLevel = 0 );
    55                       int maxLevel = 0 );
    57     static int matchF( const QString &strFrom, const QString &strToMatch );
    56     static int matchF( const QString &strFrom, const QString &strToMatch );
    58     static int compareF( const QString &string1, const QString &string2 );    
    57     static int compareF( const QString &string1, const QString &string2 );    
    59     static int findF( const QString &strFrom, const QString &strToFind );
    58     static int findF( const QString &strFrom, const QString &strToFind );
    60     
    59         
    61     static uint collate( const uint chr ); // Will be deprecated
       
    62     
       
    63     static QString convertDigits( const QString str );
    60     static QString convertDigits( const QString str );
    64     static QString convertDigitsTo( const QString str, const DigitType digitType ); 
    61     static QString convertDigitsTo( const QString str, const DigitType digitType ); 
    65     static void sort( QStringList &strList );   
    62     static void sort( QStringList &strList );   
    66 };
    63 };
    67 
    64