19 #ifndef itkFancyString_h
20 #define itkFancyString_h
26 #include "ITKIOXMLExport.h"
57 operator const char * ()
const;
72 template <
typename T >
73 FancyString& ToData( std::vector<T>& outputData,
int count = -1 );
80 template <
typename T >
81 FancyString& FromData(
const std::vector<T>& inputData );
96 template <
typename T >
104 template <
typename T >
115 template <
typename T >
122 template <
typename T >
130 FancyString& Trim(
const std::string& dislike =
" \t\n\r" );
133 FancyString& TrimLeft(
const std::string& dislike =
" \t\n\r" );
136 FancyString& TrimRight(
const std::string& dislike =
" \t\n\r" );
145 void Split( std::string& lpart, std::string& rpart,
const std::string& delims =
"=:" )
const;
148 void Split( std::vector<std::string>& result,
const std::string& delims =
";|" )
const;
154 void Split( std::map<std::string,std::string>& result,
const std::string& delims =
";|" );
157 bool MatchWith(
const std::string& s2,
bool ignoreCase =
true );
160 bool StartWith(
const std::string& s2,
bool ignoreCase =
true );
163 bool EndWith(
const std::string& s2,
bool ignoreCase =
true );
166 bool ContainSub(
const std::string& s2,
bool ignoreCase =
true );
181 FancyString&
operator<<( FancyString& s,
void (*mf)(FancyString&) );
197 template <
typename T >
198 FancyString&
operator>>( FancyString& s, std::vector<T>& data );
204 template <
typename T >
205 FancyString& operator<<( FancyString& s, const std::vector<T>& data );
216 template <
typename T >
217 FancyString&
operator>>( FancyString& s, Array<T>& data );
223 template <
typename T >
224 FancyString& operator<<( FancyString& s, const Array<T>& data );
234 template <
typename T >
235 FancyString&
operator>>( FancyString& s, T& data );
241 template <
typename T >
242 FancyString&
operator<<( FancyString& s,
const T& data );
246 #ifndef ITK_MANUAL_INSTANTIATION
247 #include "itkFancyString.hxx"
250 #endif // itkFancyString_h
Array class with size defined at construction time.
std::istream & operator>>(std::istream &is, Point< T, NPointDimension > &v)
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
void ClearContent(FancyString &input)
A special string type that is used to aid I/O operations in DOM-based object readers/writers.