Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #43595
| From | "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: A case insensitive substring search? |
| Date | 2016-06-29 21:32 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <nl17ra$cih$1@dont-email.me> (permalink) |
| References | <C6mdnaL0a8umRu_KnZ2dnUU7-cHNnZ2d@giganews.com> <pan.2016.06.28.23.41.22.74000@nowhere.invalid> <SS-20160629053202@ram.dialup.fu-berlin.de> <precedent-20160629182407@ram.dialup.fu-berlin.de> |
On 29.06.2016 19:24, Stefan Ram wrote: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >> Nobody <nobody@nowhere.invalid> writes: >>> There's no way to handle this situation >>> using only the standard library, where case conversion is assumed to map >>> one character to one character. >> It was always possible to use a custom character encoding, where >> »SS« is represented by a single code point (character); it still >> can be rendered »SS«, which is a question of I/O. > > And there even is a precedent for it: »"\n"« (one character), > which sometimes is output as »"\015\012"« (two characters). But that would break the Unix-land convention for narrow streams, that (in Unix-land) they only shuffle bytes, with no interpretation. Also keep in mind that in Unix-land the narrow streams are now usually UTF-8 encoded, with a variable number of bytes per Unicode code point. But I like the idea of the uppercase sharp S. I didn't know about it until your posting. Thanks! Cheers!, - Alf
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A case insensitive substring search? James Moe <jimoeDESPAM@sohnen-moe.com> - 2016-06-28 13:16 -0700
Re: A case insensitive substring search? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-06-28 23:48 +0100
Re: A case insensitive substring search? James Moe <jimoeDESPAM@sohnen-moe.com> - 2016-06-28 22:25 -0700
Re: A case insensitive substring search? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-06-29 10:56 +0100
Re: A case insensitive substring search? Öö Tiib <ootiib@hot.ee> - 2016-06-29 04:19 -0700
Re: A case insensitive substring search? James Moe <jimoeDESPAM@sohnen-moe.com> - 2016-06-29 10:48 -0700
Re: A case insensitive substring search? Nobody <nobody@nowhere.invalid> - 2016-06-29 00:39 +0100
Re: A case insensitive substring search? Öö Tiib <ootiib@hot.ee> - 2016-06-29 06:22 -0700
Re: A case insensitive substring search? Ralf Goertz <me@myprovider.invalid> - 2016-06-29 17:16 +0200
Re: A case insensitive substring search? Öö Tiib <ootiib@hot.ee> - 2016-07-01 01:46 -0700
Re: A case insensitive substring search? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-06-29 21:32 +0200
Re: A case insensitive substring search? Nobody <nobody@nowhere.invalid> - 2016-07-01 07:53 +0100
csiph-web