Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 33,124 of 33,346    |
|    James K. Lowden to frank67x@googlemail.com    |
|    Re: a pimpl class for std::string just t    |
|    14 Jul 13 23:34:08    |
      From: jklowden@speakeasy.net              On Sat, 13 Jul 2013 01:26:13 -0700 (PDT)       frank67x@googlemail.com wrote:              > i was looking for some std::string alike, which just handles       > everything in lower case (actually as there is only one opposite -       > upper case - it's about a case insensitive string class).              Here's a koan for you: case sensitivity isn't a property of the       string.              For a proof, consider two strings               scs, case-sensitive        sci, case-insensitive              and ask what is the meaning of               scs == sci              The "meaning" is defined by operator== and nothing else. The operator       may look for hints in its operands; they might have a flag that says       "treat as case-[in]sensitive", but the operator is free to honor or       ignore the flag, and determines what to do if the flags are in       contradiction.              Contrast that with a bona fide string property, e.g. its       encoding. It's impossible to know what characters are represented by       the bytes in the string without knowing the encoding. Two strings of       different encodings can be meaningfully compared only if both       encodings are known; operator== can't return a meaningful result       without that information.              --jkl                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca