/*---------------------------------------------------------------------------* Project: Horizon File: SimpleXmlPreprocessor.h Copyright 2009-2011 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev$ *---------------------------------------------------------------------------*/ #ifndef SIMPLEXMLPREPROCESSOR_H_ #define SIMPLEXMLPREPROCESSOR_H_ #include namespace ConsoleRestore { class SimpleXmlPreprocessor { public: SimpleXmlPreprocessor() {}; ~SimpleXmlPreprocessor() {}; // SimpleXmlParserで読めるように変換します static bool Canonicalize(std::string& str); private: // の除去 static bool EraseXmlDeclaration(std::string& str); // 空タグの除去 static bool EraseEmptyTag(std::string& str); // 属性の削除 static bool EraseAttribute(std::string& str); // 終了タグの名前空間の削除 static bool EraseNsTagEnd(std::string& str); // 開始タグの名前空間の削除 static bool EraseNsTagStart(std::string& str); }; } /* namespace ConsoleRestore */ #endif /* SIMPLEXMLPREPROCESSOR_H_ */