sl@0: /*
sl@0: * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
sl@0: * All rights reserved.
sl@0: * This component and the accompanying materials are made available
sl@0: * under the terms of the License "Eclipse Public License v1.0"
sl@0: * which accompanies this distribution, and is available
sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: *
sl@0: * Initial Contributors:
sl@0: * Nokia Corporation - initial contribution.
sl@0: *
sl@0: * Contributors:
sl@0: *
sl@0: * Description:     
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: 
sl@0: 
sl@0: 
sl@0: 
sl@0: #ifndef SORTUTILIMPL_H
sl@0: #define SORTUTILIMPL_H
sl@0: 
sl@0: //  INCLUDES
sl@0: 
sl@0: #include <e32std.h>
sl@0: #include "SortUtil.h"
sl@0: 
sl@0: namespace SortUtilImpl
sl@0:     {
sl@0: 
sl@0:     /**
sl@0:      * Returns aText with all leading whitespace characters stripped from it.
sl@0:      */
sl@0:     TPtrC StripLeadingWhiteSpace(const TDesC& aText);
sl@0: 
sl@0:     /**
sl@0:      * Searches for the next nonempty key in a sort key array.
sl@0:      *
sl@0:      * @param aKeys     the sort key array to search.
sl@0:      * @param aType     the sort key type to search for.
sl@0:      * @param aIndex    the index where to start the search from. If a key is
sl@0:      *                  returned the index is incremented.
sl@0:      * @return  the first nonempty sort key's text or empty string if 
sl@0:      *          aIndex > aKeys.SortKeyCount(). Any leading whitespace in the
sl@0:      *          sort key text is removed in the returned string.
sl@0:      */    
sl@0:     TPtrC FindNextNonEmptyKey
sl@0:             (const MSortKeyArray& aKeys, 
sl@0:             TSortKeyType aType, 
sl@0:             TInt& aIndex);
sl@0: 
sl@0:     }  // namespace SortUtilImpl
sl@0: 
sl@0: #endif // SORTUTILIMPL_H
sl@0: // End of file