aboutsummaryrefslogtreecommitdiff
path: root/lib/strequal.c
AgeCommit message (Collapse)Author
2012-12-28build: make use of 76 lib/*.h renamed filesYang Tse
76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
2011-07-26stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse
2011-06-10unittest: mark all unit tested functionsDaniel Stenberg
With "@unittest: [num]" in the header comment for each tested function. Shows we have a log way to go still...
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-15fix compiler warning: conversion from "long" to "size_t" may lose signYang Tse
2008-10-23moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_Daniel Stenberg
inclusion by the curl tool without colliding with the curl_strequal functions.
2008-10-23Created Curl_raw_nequal() which does a C-locale string case comparison.Dan Fandrich
Changed checkprefix() to use it and those instances of strnequal() that compare host names or other protocol strings that are defined to be independent of case in the C locale. This should fix a few more Turkish locale problems.
2008-10-16Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper functionDaniel Stenberg
used in strequal.c so now all test cases run fine for me again.
2008-10-16Curl_ascii_equal() must not assume that the string is actually ASCII (so ↵Daniel Stenberg
that a-z are consecutive and with a 0x20 "distance" to the uppercase letter), since we do support EBCDIC as well. Thus I replaced the macro with a (larger) switch case. I better change the function name...
2008-10-15- Pascal Terjan filed bug #2154627Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=2154627) which pointed out that libcurl uses strcasecmp() in multiple places where it causes failures when the Turkish locale is used. This is because 'i' and 'I' isn't the same letter so strcasecmp() on those letters are different in Turkish than in English (or just about all other languages). I thus introduced a totally new internal function in libcurl (called Curl_ascii_equal) for doing case insentive comparisons for english-(ascii?) style strings that thus will make "file" and "FILE" match even if the Turkish locale is selected.
2008-10-15remove Curl_strcasestr() since there is no code at all using this function!Daniel Stenberg
2008-09-15improve detection of:Yang Tse
strcasecmp() strcasestr() strcmpi() stricmp() strlcat() strncasecmp() strncmpi() strnicmp()
2007-11-07if () => if()Daniel Stenberg
while () => while() and some other minor re-indentings
2007-09-25Make glibc define the prototype for strcasestrDan Fandrich
2007-09-25Use a native strcasestr() if found.Dan Fandrich
2007-04-01Matt Kraai provided a patch that makes curl build on QNX 6 fine again. MostlyDaniel Stenberg
by letting configure check for setmode and ifdef on HAVE_SETMODE. NOTE: non- configure platforms that havve setmode() needs their hard-coded config.h files fixed. I fixed the src/config-win32.h.
2006-10-27Update copyright year, since the file has been modifiedYang Tse
2006-08-09Only define the string prototypes in ANSI mode to reduce interference onDan Fandrich
systems that prototype them slightly differently.
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-06-13added Curl_strcasestr() for case insensitive strstr() searchingDaniel Stenberg
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-08-24added the strcasecmp() proto here (moved from setup.h), as this is theDaniel Stenberg
only file within libcurl to use that function
2003-01-29removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg
way for emacs, and vim users should provide a similar non-polluting style
2003-01-16copyright year update in the source headerDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-03-19copyright string (year) updateDaniel Stenberg
2001-12-03Eric nailed a but in strnequal() for macintoshDaniel Stenberg
2001-11-27Eric Lavigne updatesDaniel Stenberg
2001-10-11looks nicer and is better compatible with older vim versionsSterling Hughes
2001-09-07Added formatting sections for emacs and vimSterling Hughes
2001-08-24cleanupsDaniel Stenberg
2001-05-18strlcat() is now Curl_strlcat() instead to prevent collisions when used withDaniel Stenberg
other libs
2001-03-14The Curl_* prefixes are now changed for curl_* ones, as these two functionsDaniel Stenberg
are used externally and thus are public symbols.
2001-02-06silly me, corrected the strlcat() to compileDaniel Stenberg
2001-02-06new openbsd inspired implementation of strlcat()Daniel Stenberg
2001-02-05adjusted the IPv6 stuff to compile and build on Linux as wellDaniel Stenberg
2001-01-05Internal symbols that aren't static are now prefixed with 'Curl_'Daniel Stenberg
2001-01-03dual-license fixDaniel Stenberg
2000-08-24#include "setup.h" moved first of all includesDaniel Stenberg
2000-06-20haxx.nu => haxx.seDaniel Stenberg
2000-06-14Added #include <string.h>Daniel Stenberg
2000-06-14bad HAVE_STRICMP usage found by Björn StenbergDaniel Stenberg
2000-05-22files moved to main branch from the newlib branchDaniel Stenberg