pauldick 01/02/07 10:41:10
Modified: c/src/PlatformSupport DirectoryEnumerator.hpp
Log:
Reverted to old code
Revision Changes Path
1.19 +4 -11 xml-xalan/c/src/PlatformSupport/DirectoryEnumerator.hpp
Index: DirectoryEnumerator.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DirectoryEnumerator.hpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- DirectoryEnumerator.hpp 2001/02/07 15:00:09 1.18
+++ DirectoryEnumerator.hpp 2001/02/07 18:41:10 1.19
@@ -163,19 +163,10 @@
struct DirectoryFilterPredicate : public std::unary_function<FindFileStruct,
bool>
#endif
{
- // This function will filter out the parent, self and CVS directories,
i.e.
- // ".", "..", "CVS".
result_type
operator()(const argument_type& theFindData) const
{
- const XalanDOMString current(XALAN_STATIC_UCODE_STRING("."));
- const XalanDOMString parent(XALAN_STATIC_UCODE_STRING(".."));
- const XalanDOMString cvs(XALAN_STATIC_UCODE_STRING("CVS"));
-
- const XalanDOMString
dirName=XalanDOMString(theFindData.getName());
-
- return theFindData.isDirectory() && (!equals(dirName, cvs) &&
!equals(dirName, current) && !equals(dirName, parent));
-
+ return theFindData.isDirectory();
}
};
@@ -198,6 +189,7 @@
};
+
template<class OutputIteratorType,
class FilterPredicateType,
class StringType,
@@ -226,7 +218,8 @@
*theOutputIterator =
StringType(theFindData.getName());
}
}
- while(_wfindnext(theSearchHandle, &theFindData) == 0);
+ while(_wfindnext(theSearchHandle,
+ &theFindData) == 0);
}
catch(...)
{