apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47322] New: apr_collapse_spaces() documentation is wrong
Date Sat, 06 Jun 2009 15:26:13 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47322

           Summary: apr_collapse_spaces() documentation is wrong
           Product: APR
           Version: HEAD
          Platform: All
               URL: http://apr.apache.org/docs/apr/1.3/group__apr__strings
                    .html#gfd92441a5f4fa3b5f5aa49e1f9884bc7
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: apachebugs@acrotect.com


The description of apr_collapse_spaces() at
http://apr.apache.org/docs/apr/1.3/group__apr__strings.html does not match its
behavior according to
http://svn.apache.org/viewvc/apr/apr/tags/1.3.5/strings/apr_cpystrn.c?view=co.

The documentation says:

Strip spaces from a string

Parameters:
dest     The destination string. It is okay to modify the string in place.
Namely dest == src
src     The string to rid the spaces from.
Returns:
The destination string, dest.

I propose that it should say:

Removes all whitespace from a string

Parameters: (unchanged from above)
Returns:
A pointer to the destination string's null terminator.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message