This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
Re: [Bug libc/15973] glibc should provide strnspn() and strncspn()
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: fweimer at redhat dot com <sourceware-bugzilla at sourceware dot org>
- Cc: glibc-bugs at sourceware dot org
- Date: Fri, 13 Jun 2014 15:04:24 +0200
- Subject: Re: [Bug libc/15973] glibc should provide strnspn() and strncspn()
- Authentication-results: sourceware.org; auth=none
- References: <bug-15973-131 at http dot sourceware dot org/bugzilla/> <bug-15973-131-alQstKsrre at http dot sourceware dot org/bugzilla/>
On Fri, Jun 13, 2014 at 12:48:04PM +0000, fweimer at redhat dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=15973
>
> Florian Weimer <fweimer at redhat dot com> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |fweimer at redhat dot com
>
> --- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
> The existing strspn function isn't even such a great model for an API. In most
> cases, it would be beneficial to pre-compile the pattern. I don't think it
> makes sense to add more interfaces with the same issue.
>
You could do caching on-line but it is not on my priority list.