[xiph-commits] r10026 - trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET

davidb at svn.xiph.org davidb at svn.xiph.org
Fri Sep 16 20:50:20 PDT 2005


Author: davidb
Date: 2005-09-16 20:50:19 -0700 (Fri, 16 Sep 2005)
New Revision: 10026

Modified:
   trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp
   trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.h
Log:
Handle i18n characters in tags

Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp	2005-09-17 03:50:06 UTC (rev 10025)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.cpp	2005-09-17 03:50:19 UTC (rev 10026)
@@ -16,6 +16,18 @@
 	mCMMLParser = NULL;
 }
 
+bool CMML_Parser::parseDoc(String* inBuffer, CMMLDoc* outCMMLDoc) 
+{
+	wchar_t* locWS = Wrappers::netStrToWStr(inBuffer);
+	wstring locBuffer = locWS;
+
+	bool retVal = mCMMLParser->parseDoc(locBuffer, outCMMLDoc->getMe());
+	
+	Wrappers::releaseWStr(locWS);
+	
+	return retVal;
+}
+
 bool CMML_Parser::parseDocFromFile(String* inFileName, CMMLDoc* outCMMLDoc) 
 {
 	wchar_t* locWS = Wrappers::netStrToWStr(inFileName);

Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.h
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.h	2005-09-17 03:50:06 UTC (rev 10025)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLParseDotNET/CMML_Parser.h	2005-09-17 03:50:19 UTC (rev 10026)
@@ -35,6 +35,9 @@
 	//bool parseCMMLRootTag(wstring inCMMLRootText, CMMLRootTag* outCMMLRoot);
 
 	bool parseDocFromFile(String* inFileName, CMMLDoc* outCMMLDoc);
+
+	bool parseDoc(String* inBuffer, CMMLDoc* outCMMLDoc);
+
 protected:
 	CMMLParser* mCMMLParser;
 };



More information about the commits mailing list