Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1344653

Re: sscanf: implement basic character sets

From Jessica Yu <jeyu@redhat.com>
Newsgroups linux.kernel
Subject Re: sscanf: implement basic character sets
Date 2016-02-26 21:30 +0100
Message-ID <r6xbr-aO-5@gated-at.bofh.it> (permalink)
References <r6xbr-aO-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


+++ Jessica Yu [26/02/16 15:20 -0500]:
>Implement basic character sets for the '%[' conversion specifier.
>
>The '%[' conversion specifier matches a nonempty sequence of characters
>from the specified set of accepted (or with '^', rejected) characters
>between the brackets. The substring matched is to be made up of characters
>in (or not in) the set. This is useful for matching substrings that are
>delimited by something other than spaces.
>
>This implementation differs from its glibc counterpart in the following ways:
>(1) No support for character ranges (e.g., 'a-z' or '0-9')
>(2) The hyphen '-' is not a special character
>(3) The closing bracket ']' cannot be matched
>(4) No support (yet) for discarding matching input ('%*[')
>
>Signed-off-by: Jessica Yu <jeyu@redhat.com>

Since this version is largely based on Rasmus' sample bitmap code
(with only very minor tweaks), what is the best way to provide
attribution in this case? A Suggested-by: tag or another
Signed-off-by: tag (since actual code is involved)?

Thanks,
Jessica

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: sscanf: implement basic character sets Jessica Yu <jeyu@redhat.com> - 2016-02-26 21:30 +0100

csiph-web