Download NHK English news podcast automatically. XML Parser "spxml" is used. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed
Fork of mpod_nhk_english by
Download NHK English news podcast automatically.
XML Parser "spxml" is used.
This application requires mpod mother board.
See also http://mbed.org/users/geodenx/notebook/mpod/
Diff: spxml/spxmlcodec.hpp
- Revision:
- 8:a9541e8897f5
- Parent:
- 7:ad9fcf0e1bc5
--- a/spxml/spxmlcodec.hpp Sat Sep 01 04:09:48 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -/* - * Copyright 2007 Stephen Liu - * For license terms, see the file COPYING along with this library. - */ - -#ifndef __spxmlcodec_hpp__ -#define __spxmlcodec_hpp__ - -class SP_XmlStringBuffer; - -class SP_XmlStringCodec { -public: - - static const char * DEFAULT_ENCODING; - - static int decode( const char * encoding, - const char * encodeValue, SP_XmlStringBuffer * outBuffer ); - static int encode( const char * encoding, - const char * decodeValue, SP_XmlStringBuffer * outBuffer ); - static int isNameChar( const char * encoding, char c ); - -private: - static const char XML_CHARS []; - static const char * ESC_CHARS []; - - SP_XmlStringCodec(); -}; - -class SP_XmlUtf8Codec { -public: - - // @return convert how many bytes - static int utf82uni( const unsigned char * utf8, int * ch ); - - static void uni2utf8( int ch, SP_XmlStringBuffer * outBuffer ); - -private: - SP_XmlUtf8Codec(); -}; - -#endif