telutils/dialpad/tsrc/unit/shared/mock_hbstringutil.cpp
author hgs
Mon, 04 Oct 2010 15:57:13 +0300
changeset 51 12bc758d6a02
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
51
hgs
parents:
diff changeset
     1
/** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
* All rights reserved.
hgs
parents:
diff changeset
     3
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
* under the terms of the License "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
*
hgs
parents:
diff changeset
     8
* Initial Contributors:
hgs
parents:
diff changeset
     9
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
*
hgs
parents:
diff changeset
    11
* Contributors:
hgs
parents:
diff changeset
    12
*
hgs
parents:
diff changeset
    13
* Description:
hgs
parents:
diff changeset
    14
*
hgs
parents:
diff changeset
    15
*/
hgs
parents:
diff changeset
    16
#include <QDebug>
hgs
parents:
diff changeset
    17
#include <smcmockclassincludes.h>
hgs
parents:
diff changeset
    18
#include "hbstringutil.h"
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
// ============================ MEMBER FUNCTIONS ===============================
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    23
// HbStringUtil::matchC
hgs
parents:
diff changeset
    24
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    25
//
hgs
parents:
diff changeset
    26
int HbStringUtil::matchC( 
hgs
parents:
diff changeset
    27
        const QString & strFrom,
hgs
parents:
diff changeset
    28
        const QString & strToMatch,
hgs
parents:
diff changeset
    29
        int maxLevel,
hgs
parents:
diff changeset
    30
        Options flags,
hgs
parents:
diff changeset
    31
        int wildChar,
hgs
parents:
diff changeset
    32
        int wildSequenceChar,
hgs
parents:
diff changeset
    33
        int escapeChar )
hgs
parents:
diff changeset
    34
    {
hgs
parents:
diff changeset
    35
    /*SMC_MOCK_METHOD7( int, const QString &, strFrom, 
hgs
parents:
diff changeset
    36
        const QString &, strToMatch, 
hgs
parents:
diff changeset
    37
        int, maxLevel, 
hgs
parents:
diff changeset
    38
        Options, flags, 
hgs
parents:
diff changeset
    39
        int, wildChar, 
hgs
parents:
diff changeset
    40
        int, wildSequenceChar, 
hgs
parents:
diff changeset
    41
        int, escapeChar )*/
hgs
parents:
diff changeset
    42
    }
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    46
// HbStringUtil::compareC
hgs
parents:
diff changeset
    47
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    48
//
hgs
parents:
diff changeset
    49
int HbStringUtil::compareC( 
hgs
parents:
diff changeset
    50
        const QString & string1,
hgs
parents:
diff changeset
    51
        const QString & string2,
hgs
parents:
diff changeset
    52
        int maxLevel,
hgs
parents:
diff changeset
    53
        Options flags )
hgs
parents:
diff changeset
    54
    {
hgs
parents:
diff changeset
    55
    /*SMC_MOCK_METHOD4( int, const QString &, string1, 
hgs
parents:
diff changeset
    56
        const QString &, string2, 
hgs
parents:
diff changeset
    57
        int, maxLevel, 
hgs
parents:
diff changeset
    58
        Options, flags )*/
hgs
parents:
diff changeset
    59
    }
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    63
// HbStringUtil::findC
hgs
parents:
diff changeset
    64
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    65
//
hgs
parents:
diff changeset
    66
int HbStringUtil::findC( 
hgs
parents:
diff changeset
    67
        const QString & strFrom,
hgs
parents:
diff changeset
    68
        const QString & strToFind,
hgs
parents:
diff changeset
    69
        int maxLevel )
hgs
parents:
diff changeset
    70
    {
hgs
parents:
diff changeset
    71
    SMC_MOCK_METHOD3( int, const QString &, strFrom, 
hgs
parents:
diff changeset
    72
        const QString &, strToFind, 
hgs
parents:
diff changeset
    73
        int, maxLevel )
hgs
parents:
diff changeset
    74
    }
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
hgs
parents:
diff changeset
    77
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    78
// HbStringUtil::matchF
hgs
parents:
diff changeset
    79
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    80
//
hgs
parents:
diff changeset
    81
int HbStringUtil::matchF( 
hgs
parents:
diff changeset
    82
        const QString & strFrom,
hgs
parents:
diff changeset
    83
        const QString & strToMatch )
hgs
parents:
diff changeset
    84
    {
hgs
parents:
diff changeset
    85
    SMC_MOCK_METHOD2( int, const QString &, strFrom, 
hgs
parents:
diff changeset
    86
        const QString &, strToMatch )
hgs
parents:
diff changeset
    87
    }
hgs
parents:
diff changeset
    88
hgs
parents:
diff changeset
    89
hgs
parents:
diff changeset
    90
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    91
// HbStringUtil::compareF
hgs
parents:
diff changeset
    92
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    93
//
hgs
parents:
diff changeset
    94
int HbStringUtil::compareF( 
hgs
parents:
diff changeset
    95
        const QString & string1,
hgs
parents:
diff changeset
    96
        const QString & string2 )
hgs
parents:
diff changeset
    97
    {
hgs
parents:
diff changeset
    98
    SMC_MOCK_METHOD2( int, const QString &, string1, 
hgs
parents:
diff changeset
    99
        const QString &, string2 )
hgs
parents:
diff changeset
   100
    }
hgs
parents:
diff changeset
   101
hgs
parents:
diff changeset
   102
hgs
parents:
diff changeset
   103
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   104
// HbStringUtil::findF
hgs
parents:
diff changeset
   105
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   106
//
hgs
parents:
diff changeset
   107
int HbStringUtil::findF( 
hgs
parents:
diff changeset
   108
        const QString & strFrom,
hgs
parents:
diff changeset
   109
        const QString & strToFind )
hgs
parents:
diff changeset
   110
    {
hgs
parents:
diff changeset
   111
    SMC_MOCK_METHOD2( int, const QString &, strFrom, 
hgs
parents:
diff changeset
   112
        const QString &, strToFind )
hgs
parents:
diff changeset
   113
    }
hgs
parents:
diff changeset
   114
hgs
parents:
diff changeset
   115
hgs
parents:
diff changeset
   116
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   117
// HbStringUtil::convertDigits
hgs
parents:
diff changeset
   118
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   119
//
hgs
parents:
diff changeset
   120
QString HbStringUtil::convertDigits( 
hgs
parents:
diff changeset
   121
        const QString str )
hgs
parents:
diff changeset
   122
    {
hgs
parents:
diff changeset
   123
    SMC_MOCK_METHOD1( QString, const QString, str )
hgs
parents:
diff changeset
   124
    }
hgs
parents:
diff changeset
   125
hgs
parents:
diff changeset
   126
hgs
parents:
diff changeset
   127
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   128
// HbStringUtil::convertDigitsTo
hgs
parents:
diff changeset
   129
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   130
//
hgs
parents:
diff changeset
   131
QString HbStringUtil::convertDigitsTo( 
hgs
parents:
diff changeset
   132
        const QString str,
hgs
parents:
diff changeset
   133
        const DigitType digitType )
hgs
parents:
diff changeset
   134
    {
hgs
parents:
diff changeset
   135
    SMC_MOCK_METHOD2( QString, const QString, str, 
hgs
parents:
diff changeset
   136
        const DigitType, digitType )
hgs
parents:
diff changeset
   137
    }
hgs
parents:
diff changeset
   138
hgs
parents:
diff changeset
   139
hgs
parents:
diff changeset
   140
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   141
// HbStringUtil::sort
hgs
parents:
diff changeset
   142
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   143
//
hgs
parents:
diff changeset
   144
void HbStringUtil::sort( 
hgs
parents:
diff changeset
   145
        QStringList & strList )
hgs
parents:
diff changeset
   146
    {
hgs
parents:
diff changeset
   147
    SMC_MOCK_METHOD1( void, QStringList &, strList )
hgs
parents:
diff changeset
   148
    }
hgs
parents:
diff changeset
   149
hgs
parents:
diff changeset
   150