summaryrefslogtreecommitdiff
path: root/include/apr_strings.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces.Ivan Zhakov2022-11-191-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* apr_strings: Provide apr_memzero_explicit() in APR.Yann Ylavic2022-06-281-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is handy outside apu_crypto usage, don't require users to link to APU for the feature. This commit moves the apr_crypto_memzero() implementation to apr_strings under the apr_memzero_explicit() name, and replaces the calls to the former with the latter, and apr_crypto_memzero() now calls apr_memzero_explicit() directly. * include/apr_strings.h(): Declare apr_memzero_explicit(). * strings/apr_strings.c(): Implement apr_memzero_explicit() by moving/renaming the code from apu_crypto. * crypto/apr_crypto.c(apr_crypto_memzero): Fall back to apr_memzero_explicit(). * crypto/apr_crypto.c(crypto_clear): Use apr_memzero_explicit() instead of apr_crypto_memzero(). * crypto/apr_crypto_prng.c(cprng_cleanup, cprng_stream_bytes, apr_crypto_prng_reseed, cprng_bytes, apr_crypto_prng_rekey, apr_crypto_prng_after_fork): Use apr_memzero_explicit() instead of apr_crypto_memzero(). * crypto/apr_md4.c(MD4Transform): Use apr_memzero_explicit() instead of apr_crypto_memzero(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902323 13f79535-47bb-0310-9956-ffa450edef68
* Slightly improve doxygen generated documentation.Christophe Jaillet2018-08-261-2/+2
| | | | | | Add some links to function git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839182 13f79535-47bb-0310-9956-ffa450edef68
* A mechanism to avoid strlen reparsing of newly parsed apr_strtok elementsWilliam A. Rowe Jr2014-03-071-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1575340 13f79535-47bb-0310-9956-ffa450edef68
* Document that some string functions check that the input string is not NULLStefan Fritsch2012-10-271-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1402868 13f79535-47bb-0310-9956-ffa450edef68
* add attribute alloc_size to a few functionsStefan Fritsch2012-05-211-2/+10
| | | | | | | This allows gcc's -D_FORTIFY_SOURCE=2 to do some overflow checks git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1341193 13f79535-47bb-0310-9956-ffa450edef68
* document errno usage with apr_atoi64() and apr_strtoi64()Jeff Trawick2009-11-191-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@882260 13f79535-47bb-0310-9956-ffa450edef68
* Fix documentation for apr_collapse_spaces().Bojan Smojver2009-06-091-2/+2
| | | | | | PR 47322. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@782838 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_strings.h (apr_pstrcat): Mark with sentinel attributeJoe Orton2008-08-061-1/+5
| | | | | | | | | | for GCC >= 4; triggers a compiler warning if the function is called without a final NULL argument. * include/apr_tables.h (apr_table_do): Likewise. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@683278 13f79535-47bb-0310-9956-ffa450edef68
* A buggered declare that we need to fix in APR 2William A. Rowe Jr2008-01-041-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@608928 13f79535-47bb-0310-9956-ffa450edef68
* Clarify the behavior of apr_pstrndup(), which differs from Jeff Trawick2006-11-161-3/+5
| | | | | | | | | | Apache 1.3's ap_pstrndup() in that it doesn't overallocate memory for the resulting string. Submitted by: trawick, jorton git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@475750 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in, include/arch/win32/apr_private.h,Joe Orton2004-05-241-0/+17
| | | | | | | | | | | | | | include/arch/netware/apr_private.h: Define APR_OFF_T_STRFN. * include/apr_strings.h, strings/apr_strings.c: Add apr_strtoff() function. * test/teststr.c (string_strtoff): Add test. Submitted by: Andr�� Malo, Joe Orton git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65120 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_strings.h: Document that apr_strtoi64 sets errno onJoe Orton2004-05-171-2/+3
| | | | | | | errors, fix a "nil". git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65098 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_strings.h: Clarify apr_cpystrn docco and fix null/NULJoe Orton2004-03-161-10/+12
| | | | | | | confusion. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65006 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* Document return values of apr_cpystrn and apr_collapse_spaces.Joe Orton2004-01-151-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64872 13f79535-47bb-0310-9956-ffa450edef68
* Rebalance our exposed headers such that everything is nested properlyWilliam A. Rowe Jr2003-03-051-11/+15
| | | | | | | | | | | | | | between extern "C" blocks and doxygen blocks, that we never include other headers within our own header's extern "C" block, that we always tag the entire file contents for doxygen (within the APR_HEADER_H only-once block), and generally clean up doxygen so that it is all consistent and generates respectable (although not yet 'great') results. Major TODO after 0.9.2 releases; fill in the apr.h APR_HAVE/APR_HAS and apr_type_t documentation!!! git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64397 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Go through doxygen output and remove as many errors and warnings as I could.Justin Erenkrantz2002-11-101-1/+1
| | | | | | | | | | | No code changes. (Note removal of #define duplication in apr_poll.h/apr_network_io.h of the APR_POLL* values. This appears to have been an oversight and is now just in apr_poll.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64009 13f79535-47bb-0310-9956-ffa450edef68
* Update the inline comments to reflect reality regarding how apr_snprintfJim Jagielski2002-09-061-5/+7
| | | | | | | | | | | works. Document the "new" special case. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63852 13f79535-47bb-0310-9956-ffa450edef68
* Step one, rename from the meaningless 'll' to 'i64'.William A. Rowe Jr2002-08-031-3/+3
| | | | | | | | I have nothing against spelling out apr_atoint64 but I think that's probably excessive. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63780 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_int64_t instead of long long as return type for apr_strtoll() and ↵Wilfredo Sanchez2002-07-241-6/+6
| | | | | | apr_atol(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63732 13f79535-47bb-0310-9956-ffa450edef68
* add some needed const to apr_strtoll and apr_atollJeff Trawick2002-07-241-2/+2
| | | | | | | fix the parms to strtol[l] in apr_strtoll git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63731 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_strtoll() and apr_atoll() to strings lib.Wilfredo Sanchez2002-07-241-0/+24
| | | | | | | Submitted by: Shantonu Sen <ssen@apple.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63730 13f79535-47bb-0310-9956-ffa450edef68
* Well it appears that binary compatibility is already broken. ThisWilliam A. Rowe Jr2002-06-281-2/+2
| | | | | | | | axes it for Win32, but it's a transition that was necessary [at some point in the future.] The change is a noop on all other platforms. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63528 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_strcatv(), a string concatenation function thatBrian Pane2002-05-121-0/+13
| | | | | | | | | uses writev-style arguments. It's a faster alternative to apr_strcat() in situations where the caller knows the lengths of the strings to be concatenated. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63387 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* This patch adds a function apr_strmemdup(), which works likeWilliam A. Rowe Jr2001-12-021-0/+14
| | | | | | | | | | | apr_pstrndup() except that it's optimized for the case where the caller can guarantee that the length of the supplied string is >= 'n' Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62594 13f79535-47bb-0310-9956-ffa450edef68
* ALL APR Include files (except for Arch specific stuff) nowIan Holsman2001-08-241-25/+16
| | | | | | | have Doxygen format headers git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62222 13f79535-47bb-0310-9956-ffa450edef68
* Replace the very limited-use ap_send_size with apr_strfsize(), whichWilliam A. Rowe Jr2001-07-251-0/+11
| | | | | | | | | works within a fixed buffer. I'm open to using the old ap_send_size() text formatting, but this result is one character shorter in size and equally readable. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62023 13f79535-47bb-0310-9956-ffa450edef68
* Change the size_t into apr_size_t (It causes problems on Solaris with gcc).Jean-Frederic Clere2001-07-251-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62018 13f79535-47bb-0310-9956-ffa450edef68
* Reduce CPU consumption in conv_10 function, used to format "%d" by apr_*printfGreg Ames2001-07-241-0/+27
| | | | | | | | | | | | | | | | | | | | This includes two changes to APR: * new functions apr_itoa, apr_ltoa, and apr_off_t_toa that provide itoa-type functionality based on pools * Inline code in inet_ntop4 to replace sprintf for converting binary IP addresses into dotted-decimal format and two changes to Apache: * use the apr_itoa functions in setting the content length, in place of apr_psprintf * use the apr_itoa functions to replace frequent uses of 'sprintf("%d",...)' in mod_log_config. Submitted by: Brian Pane Reviewed by: Dean Gaudet, Greg Ames git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62015 13f79535-47bb-0310-9956-ffa450edef68
* (apr_cpystrn): Doc fix.Karl Fogel2001-06-151-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61770 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_strtok(), a thread-safe flavor of strtok() which has theJeff Trawick2001-05-231-0/+14
| | | | | | | same interface as strtok_r(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61673 13f79535-47bb-0310-9956-ffa450edef68
* minor tweak to the doc of apr_tokenize_to_argvJeff Trawick2001-05-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61669 13f79535-47bb-0310-9956-ffa450edef68
* Sing, "we are apr"... and make all hash functions accept apr_ssize_tWilliam A. Rowe Jr2001-05-161-4/+4
| | | | | | | | if we are going to bury -1 flags (I'd prefer the flag cast to apr_size_t and use that value throughout the hash api, however.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61649 13f79535-47bb-0310-9956-ffa450edef68
* Add a couple of GCC attribute tags to printf style functions. This alsoRyan Bloom2001-02-221-1/+2
| | | | | | | | | fixes a couple of mismatched parameters highlighted revealed by the attribute. Submitted by: Jon Travis <jtravis@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61280 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* *) rename apr_memdup() to apr_pmemdup()Greg Stein2001-02-121-1/+2
| | | | | | | *) optimize the allocation size in apr_pstrndup() git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61222 13f79535-47bb-0310-9956-ffa450edef68
* Add memdup function.Ben Laurie2001-02-111-2/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61214 13f79535-47bb-0310-9956-ffa450edef68
* Moved the prototypes for apr_snprintf and apr_vsnprintf to theRyan Bloom2001-02-111-0/+42
| | | | | | | | apr_strings.h header, from apr_lib.h. This location makes more sense. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61205 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedWilliam A. Rowe Jr2001-01-181-4/+6
| | | | | | | | | | | | | | | | | | | | APR_DECLARES() to the sources, based on compilation emits (there are many that should be changed eventually, but the compiler will emit errors if those sources are added for win32). This change also splits libapr from apr, so the two projects are compiled seperately. Both .dsp files must be kept up-to-date with source file revisions. Finally, libapr.def is no longer needed - so it is gone. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup the rest of the docs.Ryan Bloom2000-12-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60880 13f79535-47bb-0310-9956-ffa450edef68
* Make the APR headers sane.Greg Stein2000-11-261-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | *) Reduce the dependencies between APR headers. This assists APR clients who generate dependencies, and (used to) pick up "all" of the APR headers. Basically, this was trimming back the headers to just what was needed. Some unneeded system headers were removed, too. The most common headers to put back in were: apr.h, apr_pools.h, and apr_errno.h. *) move apr_pool_t declaration and a few pool functions from apr_general.h to apr_pools.h. *) move kill_conditions and process_chain from apr_pools.h to apr_thread_proc.h. *) move apr_note_subprocess() from apr_general.h to apr_thread_proc.h *) add stdio.h to apr_pools.c (compensate for removal from apr_general.h) *) add apr_lib.h to apr_strnatcmp.c (compensate for apr_strings.h no longer including apr_lib.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60796 13f79535-47bb-0310-9956-ffa450edef68
* fix a typo and add a little more info in the doc for apr_pstrndup()Jeff Trawick2000-10-281-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60615 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolsWilliam A. Rowe Jr2000-10-161-8/+8
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60587 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-19/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68