locationcentre/lcserver/inc/lcregxmlparserutils.h
branchRCL_3
changeset 16 4721bd00d3da
parent 14 3a25f69541ff
child 21 e15b7f06eba6
equal deleted inserted replaced
14:3a25f69541ff 16:4721bd00d3da
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     See class description below
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef LCREGXMLPARSERUTILS_H
       
    22 #define LCREGXMLPARSERUTILS_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32math.h>
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Helper class for using strings etc.
       
    33 */
       
    34 class LcRegXmlParserUtils
       
    35     {
       
    36 public: // New functions
       
    37     /**
       
    38     * Converts a string from UTF-8 to Unicode.
       
    39     *
       
    40     * @param aUtf8 A string in UTF-8 format.
       
    41     * @param aUnicode A unicode string.
       
    42     * @return System wide error code.
       
    43     */
       
    44     static void Utf8ToUnicodeL(
       
    45     /* IN */    const TDesC8& aUtf8,
       
    46     /* IN */    TDes16& aUnicode
       
    47     );
       
    48 
       
    49    /**
       
    50     * Checks if a string only contains whitespaces or not.
       
    51     *
       
    52     * @param aStr The string to check.
       
    53     * @return ETrue if string only contain whitespaces, otherwise EFalse.
       
    54     */
       
    55     static TBool OnlyWhiteSpaces(
       
    56     /* IN */        const TDesC8& aStr
       
    57     );
       
    58     };
       
    59 
       
    60 #endif      // LCREGXMLPARSERUTILS_H
       
    61 
       
    62 // End of File