You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "cargilld (JIRA)" <xe...@xml.apache.org> on 2007/07/23 17:47:31 UTC

[jira] Assigned: (XERCESC-1657) Improved XMLChar1_x::isValidName(...) function for null-terminated strings...

     [ https://issues.apache.org/jira/browse/XERCESC-1657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

cargilld reassigned XERCESC-1657:
---------------------------------

    Assignee: cargilld

> Improved XMLChar1_x::isValidName(...) function for null-terminated strings...
> -----------------------------------------------------------------------------
>
>                 Key: XERCESC-1657
>                 URL: https://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
>            Assignee: cargilld
>            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.
-
You can reply to this email to add a comment to the issue online.


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