From c1eabb7ee738b17cf6fd66e761a9269cb7582434 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 18 Jul 2012 07:52:33 +0000 Subject: Fixed #1556: Fix From/To tag and Via branch comparison to be case insensitive git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4208 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/guid.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'pjlib/include/pj/guid.h') diff --git a/pjlib/include/pj/guid.h b/pjlib/include/pj/guid.h index 96a5849e..7b24dd51 100644 --- a/pjlib/include/pj/guid.h +++ b/pjlib/include/pj/guid.h @@ -82,6 +82,17 @@ PJ_DECL(unsigned) pj_GUID_STRING_LENGTH(void); */ PJ_DECL(pj_str_t*) pj_generate_unique_string(pj_str_t *str); +/** + * Create a globally unique string in lowercase, which length is + * PJ_GUID_STRING_LENGTH characters. Caller is responsible for preallocating + * the storage used in the string. + * + * @param str The string to store the result. + * + * @return The string. + */ +PJ_DECL(pj_str_t*) pj_generate_unique_string_lower(pj_str_t *str); + /** * Generate a unique string. * @@ -90,6 +101,14 @@ PJ_DECL(pj_str_t*) pj_generate_unique_string(pj_str_t *str); */ PJ_DECL(void) pj_create_unique_string(pj_pool_t *pool, pj_str_t *str); +/** + * Generate a unique string in lowercase. + * + * @param pool Pool to allocate memory from. + * @param str The string. + */ +PJ_DECL(void) pj_create_unique_string_lower(pj_pool_t *pool, pj_str_t *str); + /** * @} -- cgit v1.2.3