19 #ifndef __itkFancyString_h
20 #define __itkFancyString_h
56 operator const char * ()
const;
71 template <
typename T >
79 template <
typename T >
95 template <
typename T >
103 template <
typename T >
114 template <
typename T >
121 template <
typename T >
144 void Split( std::string& lpart, std::string& rpart,
const std::string& delims =
"=:" )
const;
147 void Split( std::vector<std::string>& result,
const std::string& delims =
";|" )
const;
153 void Split( std::map<std::string,std::string>& result,
const std::string& delims =
";|" );
156 bool MatchWith(
const std::string& s2,
bool ignoreCase =
true );
159 bool StartWith(
const std::string& s2,
bool ignoreCase =
true );
162 bool EndWith(
const std::string& s2,
bool ignoreCase =
true );
165 bool ContainSub(
const std::string& s2,
bool ignoreCase =
true );
180 FancyString&
operator<<( FancyString& s,
void (*mf)(FancyString&) );
196 template <
typename T >
197 FancyString&
operator>>( FancyString& s, std::vector<T>& data );
203 template <
typename T >
204 FancyString& operator<<( FancyString& s, const std::vector<T>& data );
215 template <
typename T >
216 FancyString&
operator>>( FancyString& s, Array<T>& data );
222 template <
typename T >
223 FancyString& operator<<( FancyString& s, const Array<T>& data );
233 template <
typename T >
234 FancyString&
operator>>( FancyString& s, T& data );
240 template <
typename T >
241 FancyString&
operator<<( FancyString& s,
const T& data );
245 #ifndef ITK_MANUAL_INSTANTIATION
246 #include "itkFancyString.hxx"
249 #endif // __itkFancyString_h
Array class with size defined at construction time.
FancyString & ToData(std::vector< T > &outputData, int count=-1)
void Split(std::string &lpart, std::string &rpart, const std::string &delims="=:") const
std::istream & operator>>(std::istream &is, Point< T, NPointDimension > &v)
bool ContainSub(const std::string &s2, bool ignoreCase=true)
FancyString & operator=(const std::string &str)
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
FancyString & Trim(const std::string &dislike=" \t\n\r")
bool StartWith(const std::string &s2, bool ignoreCase=true)
FancyString & FromData(const std::vector< T > &inputData)
FancyString & ToLowerCase()
void ClearContent(FancyString &input)
A special string type that is used to aid I/O operations in DOM-based object readers/writers.
FancyString & TrimLeft(const std::string &dislike=" \t\n\r")
FancyString & TrimRight(const std::string &dislike=" \t\n\r")
bool MatchWith(const std::string &s2, bool ignoreCase=true)
FancyString & ToUpperCase()
bool EndWith(const std::string &s2, bool ignoreCase=true)