Hello Jeff, I am the beginning of this APR road so to patch it it is too early. For such a novice would be nice a step-by-step, example based tutorial.
I will take a deeper look at those methods, to see how can use them. Thank you. László Graf On 2014-07-02 21:24, Jeff Trawick wrote:
On Wed, Jul 2, 2014 at 12:46 PM, Graf László <[email protected] <mailto:[email protected]>> wrote:Hello, I would like to know if you intend to introduce more, in my oppinion, useful methods in apr_strings.h.It would be an individual developer's prerogative to choose to work on more string functions. I don't recall any past discussions about this.You are welcome to submit a patch :) For example: APR_DECLARE(char *) apr_ftoa(apr_pool_t *p, float n); APR_DECLARE(char *) apr_dtoa(apr_pool_t *p, double n); apr_psprintf() is pretty darn close APR_DECLARE(int) apr_indexof(apr_pool_t *p, char *string, char *pattern); A lot like strstr()? Or is pattern a regex or other expression? APR_DECLARE(char *) apr_substring(apr_pool_t *p, char *string, int offset, int length); Easy to use apr_pstrndup() or apr_pstrmemdup for this feature. Thanks, László Graf -- Born in Roswell... married an alien... http://emptyhammock.com/ http://edjective.org/
