Improved XMLChar1_x::isValidName(...) function for null-terminated strings...
-----------------------------------------------------------------------------

                 Key: XERCESC-1657
                 URL: http://issues.apache.org/jira/browse/XERCESC-1657
             Project: Xerces-C++
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.7.0
         Environment: Win, Linux, Unix, etc
            Reporter: Christian Will
            Priority: Minor
         Attachments: isValidName.patch

For all function calls of XMLChar1_x::isValidName(const   XMLCh* const toCheck, 
const unsigned int count) a null-terminated string is used. In most cases we 
calculate the length of the string and pass it as second parameter. Since we 
have to check all characters anyways and know the string ends with a null, 
there is no reason to calculate and pass the length to the function.

I extended the XMLChar1_x class with two functions which takes only 
null-terminated strings without length information and removed the length from 
all existing old functions calls.

~Christian

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to