X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=8cd82fbe0b0bc1b20f38876368f0d6348615b1a9;hb=095918eb5242d8f92e2e53b6a226ddf519512bd8;hp=769ca63f0bf4400cbb783cf53d3bd7b44b3fc293;hpb=d0bf1f6de5086e58c5bbefcee178609763790f61;p=clitk.git diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 769ca63..8cd82fb 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -38,8 +38,9 @@ #if defined(unix) || defined(__APPLE__) # include # include -#elif defined(WIN32) +#elif defined(_WIN32) # include +# include #endif //-------------------------------------------------------------------- @@ -234,6 +235,11 @@ namespace clitk { template void MapToVecSecond(const M & m, V & v); + //-------------------------------------------------------------------- + // Find/replace string + template + int inline findAndReplace(T& source, const T& find, const T& replace); + #include "clitkCommon.txx" } // end namespace