40 #ifndef __OPENFLUID_TOOLS_STRINGHELPERS_HPP__
41 #define __OPENFLUID_TOOLS_STRINGHELPERS_HPP__
115 std::istringstream iss(Str);
117 return ((iss >> (Num)) && !iss.get(C));
192 std::string
OPENFLUID_API replace(
const std::string& Str,
const std::string& SearchStr,
const std::string& ReplaceStr);
205 inline std::string
format(
const std::string& Fmt, A&&...Args)
207 const int Size = std::snprintf(
nullptr,0,Fmt.c_str(), std::forward<A>(Args)...);
208 char* Buf =
new char[Size+1];
209 std::snprintf(Buf,Size+1,Fmt.c_str(), std::forward<A>(Args)...);
211 std::string Str(Buf);
225 std::vector<std::string>
OPENFLUID_API split(
const std::string& Str,
const char Sep,
bool KeepEmpty =
false);
237 bool KeepEmpty =
false);
276 const std::vector<std::string>& OtherVect);
std::vector< std::string > &OPENFLUID_API operator<<(std::vector< std::string > &Vect, std::string &&Str)
Definition: FrameworkException.hpp:51
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: ApplicationException.hpp:47