freebsd-skq/lib/libc/string
David Schultz f0ceb98f93 Replace the current strspn() and strcspn() with significantly faster
implementations inspired by the ones in DragonFly.  Unlike the
DragonFly versions, these have a small data cache footprint, and my
tests show that they're never slower than the old code except when the
charset or the span is 0 or 1 characters.  This implementation is
generally faster than DragonFly until either the charset or the span
gets in the ballpark of 32 to 64 characters.
2005-04-02 18:52:44 +00:00
..
bcmp.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
bcmp.c - Update the manual page of bcmp(3) by replacing 2002-08-30 21:07:40 +00:00
bcopy.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
bcopy.c Pacify gcc about casting pointers to integers (for the lowest few bits). 2003-10-26 03:55:58 +00:00
bstring.3
bzero.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
bzero.c
ffs.3 Markup, grammar, and spelling fixes. 2004-06-30 20:09:10 +00:00
ffs.c Translate from GNU C to ISO C. 2004-01-14 07:47:10 +00:00
ffsl.c Translate from GNU C to ISO C. 2004-01-14 07:47:10 +00:00
fls.c Translate from GNU C to ISO C. 2004-01-14 07:47:10 +00:00
flsl.c Translate from GNU C to ISO C. 2004-01-14 07:47:10 +00:00
index.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
index.c Brucification: Don't initialize in declaration, make sure extra lines 2003-12-18 07:44:53 +00:00
Makefile.inc Add and document ffsl(), fls() and flsl(). 2004-01-13 16:05:47 +00:00
memccpy.3
memccpy.c
memchr.3
memchr.c
memcmp.3
memcmp.c
memcpy.3
memcpy.c
memmove.3
memmove.c
memset.3
memset.c - Let their manual pages show the reader that the bzero(3) and 2002-09-01 21:53:46 +00:00
rindex.c Brucification: Don't initialize in declaration, make sure extra lines 2003-12-18 07:44:53 +00:00
stpcpy.c Add stpcpy(3). 2002-10-03 19:39:20 +00:00
strcasecmp.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
strcasecmp.c - Update strcasecmp(3)/strncasecmp(3) to reflect the fact that 2002-08-30 15:40:01 +00:00
strcasestr.c
strcat.3 Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strcat.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strchr.3 Move a sentence about the terminating \0 from the RETURN VALUES section 2003-09-04 20:36:54 +00:00
strchr.c
strcmp.3
strcmp.c
strcoll.3 Add cross-references to the wide character counterparts of these functions. 2002-10-15 10:11:53 +00:00
strcoll.c
strcpy.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
strcpy.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strcspn.3
strcspn.c Replace the current strspn() and strcspn() with significantly faster 2005-04-02 18:52:44 +00:00
strdup.3
strdup.c
strerror.3 Correctly document the return value of strerror() and strerror_r() and 2004-10-12 14:52:52 +00:00
strerror.c Unbreak !NLS case 2005-02-27 21:17:22 +00:00
string.3 C89 does not specifiy strsep(), so our strsep() implementation cannot 2002-10-19 13:41:22 +00:00
strlcat.c Enable building with LIBC_SCCS defined. 2004-10-16 06:32:43 +00:00
strlcpy.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
strlcpy.c Remove extra closing parenthesis added in revision 1.4. 2004-10-14 21:31:42 +00:00
strlen.3
strlen.c
strmode.3 o strmode(3) returns void not 0. 2003-07-01 15:28:05 +00:00
strmode.c
strncat.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strncmp.c
strncpy.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
strnstr.c Don't read more than the given 'len' bytes from the 'big' string. 2005-02-11 21:07:51 +00:00
strpbrk.3
strpbrk.c
strrchr.c
strsep.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
strsep.c
strsignal.c Unbreak strsignal(). This is an MFC candidate. 2005-03-06 03:19:19 +00:00
strspn.3
strspn.c Replace the current strspn() and strcspn() with significantly faster 2005-04-02 18:52:44 +00:00
strstr.3
strstr.c
strtok.3 Sort sections. 2005-01-20 09:17:07 +00:00
strtok.c Call strtok_r() via a libc private name from within strtok(). 2002-09-07 02:53:19 +00:00
strxfrm.3 Add cross-references to the wide character counterparts of these functions. 2002-10-15 10:11:53 +00:00
strxfrm.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
swab.3 Date business, update. 2004-12-10 15:27:06 +00:00
swab.c According to the information on: 2004-12-10 15:24:40 +00:00
wcscat.c Simplify by removing unneeded local variables and explicit null termination. 2002-09-26 09:28:55 +00:00
wcschr.c Reimplement, handling the case where c == L'\0' correctly and fixing 2002-10-23 10:47:47 +00:00
wcscmp.c Fix the NetBSD RCS id's on these files; somehow they were initially 2002-10-23 11:08:40 +00:00
wcscoll.3 mdoc(7) police: tiny nits. 2002-12-09 14:04:05 +00:00
wcscoll.c Prepare to handle state-dependent encodings. This mainly involves not 2004-04-07 09:47:56 +00:00
wcscpy.c Simplify by removing useless local variables and explicit null termination. 2002-09-26 09:23:07 +00:00
wcscspn.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcslcat.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcslcpy.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcslen.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsncat.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsncmp.c Fix the NetBSD RCS id's on these files; somehow they were initially 2002-10-23 11:08:40 +00:00
wcsncpy.c Restore Berkeley SCCS id. 2002-10-24 02:48:45 +00:00
wcspbrk.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsrchr.c Reimplement more efficiently, using a single forward scan (like strrchr(3)) 2002-10-23 10:52:04 +00:00
wcsspn.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wcsstr.c Replace wcsstr() with an implementation based on strstr(), which is far 2002-10-24 02:53:45 +00:00
wcstok.3 Remove stray comma at the end of the See Also list. 2002-10-15 09:49:54 +00:00
wcstok.c MFp4: Make `spanp' const. 2003-03-12 06:41:49 +00:00
wcswidth.3 mdoc(7) police: tiny nits. 2002-12-09 14:04:05 +00:00
wcswidth.c Move just committed version of wcswidth.c here (from "locale"), 2002-08-20 02:06:28 +00:00
wcsxfrm.3 mdoc(7) police: tiny nits. 2002-12-09 14:04:05 +00:00
wcsxfrm.c Prepare to handle state-dependent encodings. This mainly involves not 2004-04-07 09:47:56 +00:00
wmemchr.3 Sync prototypes with <wchar.h> with respect to the restrict qualifier. 2002-09-07 04:07:00 +00:00
wmemchr.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemcmp.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemcpy.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemmove.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00
wmemset.c Remove unnecessary #include <assert.h>; it was used to bring in the 2002-09-21 00:29:23 +00:00