Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!beng From: beng@microsoft.UUCP (Ben GOETTER) Newsgroups: comp.lang.c++ Subject: Re: distinguishing operator[] on left and right Summary: live untamed actual string classes in use Message-ID: <71164@microsoft.UUCP> Date: 9 Mar 91 00:33:56 GMT References: <1991Feb28.212419.20920@ndl.com> <1991Mar2.000705.3496@mathcs.sjsu.edu> <27D3E61F.6226@tct.uucp> Reply-To: beng@microsoft.UUCP (Ben Goetter) Organization: Microsoft, Network Development, UI Lines: 21 In article <27D3E61F.6226@tct.uucp> chip@tct.uucp (Chip Salzenberg) writes: | According to jar@ifi.uio.no (Jo Are Rosland): | >I mean, a very popular first project (and perhaps second and third | >:-)) after having learned C++, is to create some kind of string class. | >But how many of those string classes are actually in use? | | We still use ours. As do we. For us, the big win lies less in automatic storage management than it does in localization of double-byte character-set (DBCS) dependencies. It has also in the past handled conversion from application resourcefiles and to/from alien string formats (e.g. non-ASCIZ). Unfortunately, an airtight set of DBCS-safe methods renders impossible the traditional byte-vector string manipulation so beloved by C hacks. The usual ad-hoc lexing becomes very awkward. Make sure you have an adequate replacement for char-at-a-time tokenizing and pattern-matching, lest you be lynched by your angry clients. (I still sport rope burns....) -- Ben Goetter, microsoft!beng