summaryrefslogtreecommitdiff
path: root/lib/strequal.c
Commit message (Collapse)AuthorAgeFilesLines
* moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_Daniel Stenberg2008-10-231-101/+0
| | | | inclusion by the curl tool without colliding with the curl_strequal functions.
* Created Curl_raw_nequal() which does a C-locale string case comparison.Dan Fandrich2008-10-231-0/+16
| | | | | | | 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.
* Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper functionDaniel Stenberg2008-10-161-8/+9
| | | | used in strequal.c so now all test cases run fine for me again.
* Curl_ascii_equal() must not assume that the string is actually ASCII (so ↵Daniel Stenberg2008-10-161-3/+63
| | | | | | | | | 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...
* - Pascal Terjan filed bug #2154627Daniel Stenberg2008-10-151-0/+24
| | | | | | | | | | | (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.
* remove Curl_strcasestr() since there is no code at all using this function!Daniel Stenberg2008-10-151-23/+0
|
* improve detection of:Yang Tse2008-09-151-15/+4
| | | | | | | | | | | strcasecmp() strcasestr() strcmpi() stricmp() strlcat() strncasecmp() strncmpi() strnicmp()
* if () => if()Daniel Stenberg2007-11-071-8/+8
| | | | | while () => while() and some other minor re-indentings
* Make glibc define the prototype for strcasestrDan Fandrich2007-09-251-0/+5
|
* Use a native strcasestr() if found.Dan Fandrich2007-09-251-0/+4
|
* Matt Kraai provided a patch that makes curl build on QNX 6 fine again. MostlyDaniel Stenberg2007-04-011-1/+5
| | | | | | 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.
* Update copyright year, since the file has been modifiedYang Tse2006-10-271-1/+1
|
* Only define the string prototypes in ANSI mode to reduce interference onDan Fandrich2006-08-091-1/+1
| | | | systems that prototype them slightly differently.
* removed tabs and trailing whitespace from sourceDaniel Stenberg2004-10-061-1/+1
|
* added Curl_strcasestr() for case insensitive strstr() searchingDaniel Stenberg2004-06-131-6/+25
|
* Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg2004-01-291-0/+2
| | | | warnings. Minor edits by me.
* updated year in the copyright stringDaniel Stenberg2004-01-071-1/+1
|
* added the strcasecmp() proto here (moved from setup.h), as this is theDaniel Stenberg2003-08-241-0/+6
| | | | only file within libcurl to use that function
* removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg2003-01-291-8/+0
| | | | way for emacs, and vim users should provide a similar non-polluting style
* copyright year update in the source headerDaniel Stenberg2003-01-161-1/+1
|
* updated source code boilerplate/headerDaniel Stenberg2002-09-031-7/+7
|
* copyright string (year) updateDaniel Stenberg2002-03-191-1/+1
|
* Eric nailed a but in strnequal() for macintoshDaniel Stenberg2001-12-031-0/+3
|
* Eric Lavigne updatesDaniel Stenberg2001-11-271-0/+1
|
* looks nicer and is better compatible with older vim versionsSterling Hughes2001-10-111-2/+2
|
* Added formatting sections for emacs and vimSterling Hughes2001-09-071-0/+8
|
* cleanupsDaniel Stenberg2001-08-241-3/+3
|
* strlcat() is now Curl_strlcat() instead to prevent collisions when used withDaniel Stenberg2001-05-181-1/+1
| | | | other libs
* The Curl_* prefixes are now changed for curl_* ones, as these two functionsDaniel Stenberg2001-03-141-2/+2
| | | | are used externally and thus are public symbols.
* silly me, corrected the strlcat() to compileDaniel Stenberg2001-02-061-1/+1
|
* new openbsd inspired implementation of strlcat()Daniel Stenberg2001-02-061-8/+23
|
* adjusted the IPv6 stuff to compile and build on Linux as wellDaniel Stenberg2001-02-051-0/+26
|
* Internal symbols that aren't static are now prefixed with 'Curl_'Daniel Stenberg2001-01-051-2/+2
|
* dual-license fixDaniel Stenberg2001-01-031-28/+11
|
* #include "setup.h" moved first of all includesDaniel Stenberg2000-08-241-2/+2
|
* haxx.nu => haxx.seDaniel Stenberg2000-06-201-2/+2
|
* Added #include <string.h>Daniel Stenberg2000-06-141-0/+2
|
* bad HAVE_STRICMP usage found by Björn StenbergDaniel Stenberg2000-06-141-1/+1
|
* files moved to main branch from the newlib branchDaniel Stenberg2000-05-221-0/+83