diff -r 000000000000 -r 7f85d04be362 upnpavcontroller/upnpxmlparser/inc/upnpxmlstringutility.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/upnpavcontroller/upnpxmlparser/inc/upnpxmlstringutility.h Thu Dec 17 08:52:00 2009 +0200 @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: String Utility for UPnPXMLParse. +* +*/ + + + + + +#ifndef UPNPXMLSTRINGUTILITY_H_ +#define UPNPXMLSTRINGUTILITY_H_ + +// INCLUDES + +// FORWARD DECLARATIONS +class HBufC8; +class TDesC8; + +// CLASS DECLARATION + +/** +* Utility for working with string operation.The class +* contains static methods that can be used to modify xmldata. +* @since S60 3.2 +* @lib upnpxmlparser.lib +*/ +class UpnpXmlStringUtility + { + +public: + + /** + * Remove control characters from xml data + * @param aXmlData, a buffer for xml data. + * @return a buffer without control characters that are of form &#XXXX; + * where XXXX is an integer number. + * If no control character return NULL. + */ + IMPORT_C static HBufC8* RemoveXmlControlCharactersL( + const TDesC8& aXmlData ); + + }; + +#endif // UPNPXMLSTRINGUTILITY_H_ + +// End of File \ No newline at end of file