r2835 - in trunk/libmutil: include/libmutil source
Erik Eliasson
eliasson at it.kth.se
Tue Oct 17 16:08:30 CEST 2006
Fixed now - Thanks!
--Erik
On Tue, 2006-10-17 at 15:50 +0200, Philippe Torrelli wrote:
> Hello,
>
>
> It'd be nice to also fix the strNCaseCmp prototype
> ( that lacks its third parameter )
> and also replace the call to strncasecmp with a call to strNCaseCmp
> in SipMessageParser::findContentLength().
>
> Hope it helps.
> Philippe Torrelli
>
>
> -----Message d'origine-----
> De : minisip-devel-bounces at minisip.org
> [mailto:minisip-devel-bounces at minisip.org] De la part de erik at minisip.org
> Envoyé : mardi 17 octobre 2006 15:10
> À : minisip-devel at minisip.org
> Objet : r2835 - in trunk/libmutil: include/libmutil source
>
> Author: erik
> Date: 2006-10-17 15:09:50 +0200 (Tue, 17 Oct 2006)
> New Revision: 2835
>
> Modified:
> trunk/libmutil/include/libmutil/stringutils.h
> trunk/libmutil/source/stringutils.cxx
> Log:
>
> * Added function to check whether a character is whitespace or not to
> libmutil/stringgutils.
>
>
>
> Modified: trunk/libmutil/include/libmutil/stringutils.h
> ===================================================================
> --- trunk/libmutil/include/libmutil/stringutils.h 2006-10-17 10:14:37
> UTC (rev 2834)
> +++ trunk/libmutil/include/libmutil/stringutils.h 2006-10-17 13:09:50
> UTC (rev 2835)
> @@ -63,6 +63,11 @@
> LIBMUTIL_API int strNCaseCmp(const char *s1, const char* s2);
>
> /**
> + * @return true if the parameter is a white space (' ', '\n' or '\t')
> + */
> +LIBMUTIL_API bool isWS(char c);
> +
> +/**
> * Removes whitespace from beginning and end of Strings.
> * @param s String from which to remove whitespace (or rather
> copy and remove whitespace from)
> * @author Erik Eliasson
>
> Modified: trunk/libmutil/source/stringutils.cxx
> ===================================================================
> --- trunk/libmutil/source/stringutils.cxx 2006-10-17 10:14:37 UTC (rev
> 2834)
> +++ trunk/libmutil/source/stringutils.cxx 2006-10-17 13:09:50 UTC (rev
> 2835)
> @@ -104,6 +104,10 @@
> return split(s, do_trim, '\n',false);
> }
>
> +LIBMUTIL_API bool isWS(char c){
> + return (c==' ' || c=='\t' || c=='\n');
> +}
> +
> LIBMUTIL_API string upCase(string s){
> size_t n=s.size();
> string ret(n,' ');
>
> _______________________________________________
> Minisip-devel mailing list
> Minisip-devel at minisip.org
> http://lists.minisip.org/mailman/listinfo/minisip-devel
>
> _______________________________________________
> Minisip-devel mailing list
> Minisip-devel at minisip.org
> http://lists.minisip.org/mailman/listinfo/minisip-devel
--
Erik Eliasson <eliasson at it.kth.se>
More information about the Minisip-devel
mailing list