You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/09/23 23:30:33 UTC
cvs commit: xml-xalan/c/src/PlatformSupport DOMStringHelper.cpp DOMStringHelper.hpp
dbertoni 2002/09/23 14:30:33
Modified: c/src/PlatformSupport DOMStringHelper.cpp
DOMStringHelper.hpp
Log:
Made XalanCopy and XalanTransform public.
Revision Changes Path
1.75 +0 -39 xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp
Index: DOMStringHelper.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- DOMStringHelper.cpp 5 Sep 2002 01:11:31 -0000 1.74
+++ DOMStringHelper.cpp 23 Sep 2002 21:30:33 -0000 1.75
@@ -566,45 +566,6 @@
-#if defined(XALAN_NO_ALGORITHMS_WITH_BUILTINS)
-
-template<class InputIteratorType, class OutputIteratorType>
-inline OutputIteratorType
-XalanCopy(
- InputIteratorType begin,
- InputIteratorType end,
- OutputIteratorType iterator)
-{
- for(; begin != end; ++iterator, ++begin)
- {
- *iterator = *begin;
- }
-
- return iterator;
-}
-
-
-
-template<class InputIteratorType, class OutputIteratorType, class UnaryFunction>
-inline OutputIteratorType
-XalanTransform(
- InputIteratorType begin,
- InputIteratorType end,
- OutputIteratorType iterator,
- UnaryFunction function)
-{
- for(; begin != end; ++iterator, ++begin)
- {
- *iterator = function(*begin);
- }
-
- return iterator;
-}
-
-#endif
-
-
-
template <class InputIteratorType, class OutputIteratorType, class FunctionType>
OutputIteratorType
TransformString(
1.61 +72 -0 xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
Index: DOMStringHelper.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- DOMStringHelper.hpp 5 Sep 2002 07:09:42 -0000 1.60
+++ DOMStringHelper.hpp 23 Sep 2002 21:30:33 -0000 1.61
@@ -133,6 +133,78 @@
+#if defined(XALAN_NO_ALGORITHMS_WITH_BUILTINS)
+
+template<class InputIteratorType, class OutputIteratorType>
+inline OutputIteratorType
+XalanCopy(
+ InputIteratorType begin,
+ InputIteratorType end,
+ OutputIteratorType iterator)
+{
+ for(; begin != end; ++iterator, ++begin)
+ {
+ *iterator = *begin;
+ }
+
+ return iterator;
+}
+
+
+
+template<class InputIteratorType, class OutputIteratorType, class UnaryFunction>
+inline OutputIteratorType
+XalanTransform(
+ InputIteratorType begin,
+ InputIteratorType end,
+ OutputIteratorType iterator,
+ UnaryFunction function)
+{
+ for(; begin != end; ++iterator, ++begin)
+ {
+ *iterator = function(*begin);
+ }
+
+ return iterator;
+}
+
+#else
+
+template<class InputIteratorType, class OutputIteratorType>
+inline OutputIteratorType
+XalanCopy(
+ InputIteratorType begin,
+ InputIteratorType end,
+ OutputIteratorType iterator)
+{
+#if !defined(XALAN_NO_NAMESPACES)
+ using std::copy;
+#endif
+
+ return copy(begin, end, iterator);
+}
+
+
+
+template<class InputIteratorType, class OutputIteratorType, class UnaryFunction>
+inline OutputIteratorType
+XalanTransform(
+ InputIteratorType begin,
+ InputIteratorType end,
+ OutputIteratorType iterator,
+ UnaryFunction function)
+{
+#if !defined(XALAN_NO_NAMESPACES)
+ using std::transform;
+#endif
+
+ return transform(begin, end, iterator);
+}
+
+#endif
+
+
+
/**
* Get the underlying representation of the target XalanDOMString as a
* null-terminated string
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org