it requires a Octstr!! as the 2nd parameter.  i'll spell that out -
comparing a octstr to a constant char *
- why be forced to make a octstr of a constant string?

there is the current octstr_str_compare
but it is not case-insensitive

cheers




----- Original Message ----- 
From: "Pommnitz, Jörg" <[EMAIL PROTECTED]>
To: <devel@kannel.org>
Sent: Friday, February 25, 2005 7:55 PM
Subject: RE: octstr_case_str_compare -#- MailID:PAAA


What's wrong with:

/*
 * Like octstr_compare, except compares bytes without case sensitivity.
 * Note that this probably doesn't work for Unicode, but should work
 * for such 8-bit character sets as are supported by libc.
 */
int octstr_case_compare(const Octstr *ostr1, const Octstr *ostr2);

directly under octstr_compare?


-----Ursprüngliche Nachricht-----
Von: fred [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Februar 2005 01:19
An: devel
Betreff: octstr_case_str_compare


Please consider this PATCH


/*
 * Same as octstr_compare, but compares the content of the octet string to
 * a C string without case sensitivity.
 */

int octstr_case_str_compare(const Octstr *os1, const char*str);



cheers


/*HTMLBody*/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">


<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> fred
  [mailto:[EMAIL PROTECTED]<BR><B>Gesendet:</B> Freitag, 25. Februar 2005
  01:19<BR><B>An:</B> devel<BR><B>Betreff:</B> octstr_case_str_compare
  <BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Please consider this PATCH</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>/*<BR>&nbsp;* Same as octstr_compare, but
  compares the content of the octet string to <BR>&nbsp;* a C string without

  case sensitivity.<BR>&nbsp;*/<BR></DIV></FONT>
  <DIV><FONT face=Arial size=2>int octstr_case_str_compare(const Octstr
*os1,
  const char*str);<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>cheers</FONT></DIV>
  <DIV><FONT face=Arial
size=2>&nbsp;</DIV></BLOCKQUOTE></FONT></BODY></HTML>

/*End HTMLBody*/ << Datei: octstr.h.patch >>  << Datei: octstr.c.patch >>


Reply via email to