* EXPORT_SPEC missing on some declarations in ixml/inc/ixml.h.
Thanks to David Maass. * sizeof is unsigned, so %zu is more adequate than %zd. * Using an invented printf directive PRIzu that on MSVC expands to "lu", and on normal C99 compilers expands to "zu". * Rewrote raw_find_str. Now it no longer uses strcasestr(), but it transforms the first input buffer into lowercase. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@184 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
@@ -448,15 +448,17 @@ int matchstr( IN char *str, IN size_t slen, IN const char* fmt, ... );
|
||||
int raw_to_int( IN memptr* raw_value, int base );
|
||||
|
||||
/************************************************************************
|
||||
* Function: raw_find_str
|
||||
*
|
||||
* Parameters:
|
||||
* IN memptr* raw_value ; Buffer containg the string
|
||||
* IN const char* str ; Substring to be found
|
||||
*
|
||||
* Description: Find a substring from raw character string buffer
|
||||
*
|
||||
* Returns:
|
||||
* Function: raw_find_str
|
||||
*
|
||||
* Parameters:
|
||||
* IN memptr* raw_value ; Buffer containg the string
|
||||
* IN const char* str ; Substring to be found
|
||||
*
|
||||
* Description: Find a substring from raw character string buffer
|
||||
*
|
||||
* Side effects: raw_value is transformed to lowercase.
|
||||
*
|
||||
* Returns:
|
||||
* int - index at which the substring is found.
|
||||
************************************************************************/
|
||||
int raw_find_str( IN memptr* raw_value, IN const char* str );
|
||||
|
||||
Reference in New Issue
Block a user