RE: octstr_case_str_compare

"Pommnitz, Jörg" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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 >>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.