You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/01/05 23:00:24 UTC
cvs commit: xml-xerces/c/src/util/MsgLoaders/MsgCatalog MsgCatalogLoader.cpp
aruna1 00/01/05 14:00:23
Modified: c/src/util/MsgLoaders/MsgCatalog MsgCatalogLoader.cpp
Log:
Modified message 'set' attribute reading sequence. Removed dependencies on hard coded constants
Revision Changes Path
1.3 +9 -4 xml-xerces/c/src/util/MsgLoaders/MsgCatalog/MsgCatalogLoader.cpp
Index: MsgCatalogLoader.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/MsgLoaders/MsgCatalog/MsgCatalogLoader.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MsgCatalogLoader.cpp 1999/12/23 01:43:37 1.2
+++ MsgCatalogLoader.cpp 2000/01/05 22:00:22 1.3
@@ -56,6 +56,9 @@
/**
* $Log: MsgCatalogLoader.cpp,v $
+ * Revision 1.3 2000/01/05 22:00:22 aruna1
+ * Modified message 'set' attribute reading sequence. Removed dependencies on hard coded constants
+ *
* Revision 1.2 1999/12/23 01:43:37 aruna1
* MsgCatalog support added for solaris
*
@@ -77,10 +80,12 @@
#include <util/XMLString.hpp>
#include <util/XMLUni.hpp>
#include "MsgCatalogLoader.hpp"
+#include "XMLMsgCat_Ids.hpp"
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
// ---------------------------------------------------------------------------
// Public Constructors and Destructor
@@ -125,13 +130,13 @@
, XMLCh* const toFill
, const unsigned long maxChars)
{
- int msgSet = 1;
+ int msgSet = CatId_XML4CErrs;
if (!XMLString::compareString(fMsgDomain, XMLUni::fgXMLErrDomain))
- msgSet = 1;
+ msgSet = CatId_XML4CErrs;
else if (!XMLString::compareString(fMsgDomain, XMLUni::fgExceptDomain))
- msgSet = 2;
+ msgSet = CatId_XML4CExcepts;
else if (!XMLString::compareString(fMsgDomain, XMLUni::fgValidityDomain))
- msgSet = 3;
+ msgSet = CatId_XML4CValid;
char msgString[100];
sprintf(msgString, "Could not find message ID %d from message set %d\n", msgToLoad, msgSet);