19#ifndef itkStringTools_h
20#define itkStringTools_h
25#include "ITKIOXMLExport.h"
57 ToData(std::string & s, std::vector<T> & data,
int count = -1);
66 FromData(std::string & s,
const std::vector<T> & data);
102 template <
typename T>
110 template <
typename T>
120 Trim(std::string & str,
const std::string & dislike =
" \t\n\r");
124 TrimLeft(std::string & str,
const std::string & dislike =
" \t\n\r");
128 TrimRight(std::string & str,
const std::string & dislike =
" \t\n\r");
140 Split(
const std::string & s, std::string & lpart, std::string & rpart,
const std::string & delims =
"=:");
144 Split(
const std::string & s, std::vector<std::string> & result,
const std::string & delims =
";|");
151 Split(
const std::string & s, std::map<std::string, std::string> & result,
const std::string & delims =
";|");
155 MatchWith(
const std::string & s1,
const std::string & s2,
bool ignoreCase =
true);
159 StartWith(
const std::string & s1,
const std::string & s2,
bool ignoreCase =
true);
163 EndWith(
const std::string & s1,
const std::string & s2,
bool ignoreCase =
true);
167 ContainSub(
const std::string & s1,
const std::string & s2,
bool ignoreCase =
true);
172#ifndef ITK_MANUAL_INSTANTIATION
173# include "itkStringTools.hxx"
Array class with size defined at construction time.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....