dbertoni 02/04/10 22:53:55
Modified: c/src/XPathCAPI XPathCAPI.cpp
Log:
Cleanup for picky compilers.
Revision Changes Path
1.7 +5 -5 xml-xalan/c/src/XPathCAPI/XPathCAPI.cpp
Index: XPathCAPI.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPathCAPI/XPathCAPI.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XPathCAPI.cpp 23 Feb 2002 04:22:26 -0000 1.6
+++ XPathCAPI.cpp 11 Apr 2002 05:53:55 -0000 1.7
@@ -342,7 +342,7 @@
int theResult = XALAN_XPATH_API_SUCCESS;
- if (theStringEncoding == 0 || strlen(theStringEncoding) == 0)
+ if (theStringEncoding == 0 || XalanDOMString::length(theStringEncoding)
== 0)
{
theResultString = theString;
}
@@ -375,11 +375,11 @@
// surrogate pairs, but those are for private use
// only right now, so we don't really need to
// worry about them.
- const size_t theLength = strlen(theString);
+ const XalanDOMString::size_type theLength =
XalanDOMString::length(theString);
// Only use a dynamically-allocated array for very long
// XPath expressions.
- const size_t maxStackArraySize = 100;
+ const XalanDOMString::size_type
maxStackArraySize = 100;
if (theLength >= maxStackArraySize)
{
@@ -432,7 +432,7 @@
{
return XALAN_XPATH_API_ERROR_ALREADY_TERMINATED;
}
- else if (theXalanHandle == 0 || theXPathHandle == 0 ||
theXPathExpression == 0 || strlen(theXPathExpression) == 0)
+ else if (theXalanHandle == 0 || theXPathHandle == 0 ||
theXPathExpression == 0 || XalanDOMString::length(theXPathExpression) == 0)
{
return XALAN_XPATH_API_ERROR_INVALID_PARAMETER;
}
@@ -563,7 +563,7 @@
#else
reinterpret_cast<const XMLByte*>(theXML),
#endif
-
strlen(theXML),
+
XalanDOMString::length(theXML),
"SourceXML",
false);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]