Boost logo

Boost :

From: Martin Adrian (adrianm_at_[hidden])
Date: 2006-10-13 05:27:56


shams <shams <at> orcon.net.nz> writes:

> The thing is that if you don't want to use it then dont, but atleast these
> string functionalities should be available with ease for all including novices
> and experianced programmers. Something like super_string in Boost could be
> received quite well by the boosters community and could increase popularity
> of Boost even between novice and experianced developers.

What if a module need to use some super_string functions. If it then takes a
super_string as argument, all modules using this library need to include headers
for regex and string_algo and all their dependencies.

The alternative is to take the argument as basic_string and then copy it into a
superstring to do the processing.

> Why should something like trimming, uppercasing, lowercasing
> should be so hard in C++.

Why is

boost::super_string ss(s)
ss.trim()

easier than

boost::trim(s)

Many other langages (specially entry-level like VB) only have free functions for
string processing.

I agree that the string_algo library is a bit difficult to get into but solving
that with a new library isn't the right way.

Why not a string_algo wiki where users can add their own real-world examples of
how you do things with it.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk