You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2005/06/08 00:05:19 UTC

svn commit: r189457 - /xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp

Author: jberry
Date: Tue Jun  7 15:05:19 2005
New Revision: 189457

URL: http://svn.apache.org/viewcvs?rev=189457&view=rev
Log:
Add support for Windows backslash in isAnySlash

Modified:
    xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp

Modified: xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp?rev=189457&r1=189456&r2=189457&view=diff
==============================================================================
--- xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp (original)
+++ xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp Tue Jun  7 15:05:19 2005
@@ -648,13 +648,24 @@
 inline bool
 XMLPlatformUtils::isAnySlash(XMLCh c) 
 {
-    return (
+	// As far as we know, all supported Xerces
+	// platforms use at least a forward slash
+	// as a path separator. So we always check for
+	// that.
+	//
+	// If XERCES_PATHSEP_BACKSLASH evaluates to true,
+	// we also consider that as a slash.
+	//
+	// XERCES_PATHSEP_BACKSLASH may be set in config.h
+	// by configure, or elsewhere by platform-specific
+	// code.
+    return	(
 			false
 		 || chForwardSlash == c
-#if TODO_AUTOCONF_CHECK
+	#if XERCES_PATHSEP_BACKSLASH
 		 || chBackSlash == c
-#endif
-     );
+	#endif
+     		);
 }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org