From decbf18e4af887bf2b3ef17fb9f980d743f9a814 Mon Sep 17 00:00:00 2001 From: Tinny Ng <tng@apache.org> Date: Mon, 25 Nov 2002 21:27:52 +0000 Subject: [PATCH] Performance: use XMLRecognizer::Encodings enum to make new transcode, faster than comparing the encoding string every time. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174404 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/TransService.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/xercesc/util/TransService.hpp b/src/xercesc/util/TransService.hpp index 0e7edff65..a74b96605 100644 --- a/src/xercesc/util/TransService.hpp +++ b/src/xercesc/util/TransService.hpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.5 2002/11/25 21:27:52 tng + * Performance: use XMLRecognizer::Encodings enum to make new transcode, faster than comparing the encoding string every time. + * * Revision 1.4 2002/11/04 15:22:04 tng * C++ Namespace Support. * @@ -130,6 +133,7 @@ #define TRANSSERVICE_HPP #include <xercesc/util/XercesDefs.hpp> +#include <xercesc/framework/XMLRecognizer.hpp> XERCES_CPP_NAMESPACE_BEGIN @@ -195,6 +199,13 @@ public : , const unsigned int blockSize ); + XMLTranscoder* makeNewTranscoderFor + ( + XMLRecognizer::Encodings encodingEnum + , XMLTransService::Codes& resValue + , const unsigned int blockSize + ); + // ----------------------------------------------------------------------- // The virtual transcoding service API -- GitLab