Boost logo

Boost Users :

From: Matthias Kaeppler (nospam_at_[hidden])
Date: 2005-07-16 13:11:45

Hi Pavol,

> There is no such a function in string_algo lib. But you can easily use
> std::lexicographical_compare.
> There is a variant with a custom comparison predicate. For that you can use
> boost::is_iequal defined in boost/algorithm/string/compare.hpp.

According to this paper ( by Matt
Austern, using lexicographical_compare (alone) is not a good idea,
because it doesn't take locales into account and thus case conversion
may be incorrect.

He proposed a solution in this article, but since Matt Austern has
already contributed to Boost, I thought this functor might already be
part of the Boost libraries.

Matthias Kaeppler

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at