[Paraview] vtkStdString
David Thompson
dcthomp at sandia.gov
Wed Jan 13 19:09:28 EST 2010
> Could someone provide me an example 'to lowcase' a vtkStdString ?
> I would like to apply a tolower() method but don't know how.
>
> vtkStdString units;
> if (units.find(" since ") != vtkStdString::npos)
> {
> ...
>
Take a look at VTK/Utilities/kwsys/SystemTools.hxx.in and
RegularExpression.hxx. SystemTools::LowerCase is a routine to downcase
strings and RegularExpression lets you define searches. To use them, you
need to
#include <vtksys/SystemTools.hxx>
#include <vtksys/RegularExpression.hxx>
Note that the includes use vtksys, not kwsys.
David
More information about the ParaView
mailing list