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);
83 ToData(std::string & s,
Array<T> & data,
int count = -1);
92 FromData(std::string & s,
const Array<T> & data);
102 template <
typename T>
104 ToData(std::string & s, T & data);
110 template <
typename T>
112 FromData(std::string & s,
const T & data);
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");
132 ToUpperCase(std::string & str);
136 ToLowerCase(std::string & str);
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"
176 #endif // itkStringTools_h