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


Groups > comp.lang.c++ > #82953

Re: How to replace Rogue Wave tools.h++

From "Alf P. Steinbach" <alf.p.steinbach@gmail.com>
Newsgroups comp.lang.c++
Subject Re: How to replace Rogue Wave tools.h++
Date 2022-02-07 15:10 +0100
Organization A noiseless patient Spider
Message-ID <str98c$2b6$1@dont-email.me> (permalink)
References <977d9759-c2a4-480b-9370-6b1d396c3f95n@googlegroups.com>

Show all headers | View raw


On 7 Feb 2022 13:49, Alwyn Teh wrote:
> Hi,
> 
> Please see the following post:
> https://groups.google.com/g/comp.lang.tcl/c/r0-8i4vKd9Q
> 
> I want to replace Rogue Wave tools.h++ used in an old C++ Unix program with the latest standard libraries. How do I go about doing this?
> 

I'm unfamiliar with that library, but judging from the names:


> The classes and header files used are:
> 63 RWCString

`std::string`


> 35 RWCollectableString

`std::string`


> 8 RWHashDictionaryIterator

std::unordered_map::iterator


> 7 RWHashDictionary

std::unordered_map (or std::unordered_set)


> 4 RWOrdered

Possibly std::map or std::set


> 4 RWCRegexp

Oh, the now deprecated `std::regexp`. Problem that it doesn't handle 
UTF-8 very well.


> 3 RWSortedVector

Nothing like it. Possibly `std::multiset`.


> 3 RWCTokenizer

`std::istringstream`, but better make your own because the streams are 
inefficient (due to silly design with locale support and inversion of 
layers of abstraction) and complex.


> 2 RWOrderedIterator

n/a


> 2 RWHashDictionary

std::unordered_map or std::unordered_set


> 1 RWSortedVectorIterator

-

> 1 RWSet

std::set


> 1 RWRegexp

Unclear what's the difference with RWCRegexp?


> 1 RWCollectable

Nothing like it, sounds like a Jave-esque `Object`.


> 1 RWBitVec

`std::vector<bool>` (dynamic) or `std::bitset` (fixed size)


> > 13 <rw/cstring.h>
> 7 <rw/hashdict.h>
> 5 <rw/regexp.h>
> 5 <rw/ordcltn.h>
> 4 <rw/collect.h>
> 3 <rw/collstr.h>
> 2 <rw/rwset.h>
> 2 <rw/ctoken.h>
> 1 <rw/tooldefs.h>
> 1 <rw/sortvec.h>
> 1 <rw/bitvec.h>
> 1 <rw/bintree.h>
> 
> Thanks.

You're welcome.

See <url: https://en.cppreference.com/w/> for details and general info.


- Alf

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to replace Rogue Wave tools.h++ Alwyn Teh <alteh2007@gmail.com> - 2022-02-07 04:49 -0800
  Re: How to replace Rogue Wave tools.h++ "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2022-02-07 15:10 +0100
    Re: How to replace Rogue Wave tools.h++ Juha Nieminen <nospam@thanks.invalid> - 2022-02-08 07:10 +0000
      Re: How to replace Rogue Wave tools.h++ Ralf Goertz <me@myprovider.invalid> - 2022-02-08 08:55 +0100
      Re: How to replace Rogue Wave tools.h++ "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2022-02-13 16:30 +0100
        Re: How to replace Rogue Wave tools.h++ "daniel...@gmail.com" <danielaparker@gmail.com> - 2022-02-13 09:38 -0800
  Re: How to replace Rogue Wave tools.h++ Jorgen Grahn <grahn+nntp@snipabacken.se> - 2022-02-13 09:41 +0000

csiph-web