casadi/casadi_windows/include/casadi/core/casadi_common.hpp
inline std::string fmtstr(const std::string& fmt, const std::vector<std::string>& args) {
    std::string s = fmt;
    for (auto&& e : args) {
      std::string::size_type n = s.find("%s");
      if (n==std::string::npos) return "** Ill-formated string ** " + fmt;
      s.replace(n, 2, e);
    }
    return s;
  }
//! \brief Create a string from a formated string
\brief Create a string from a formated string
\ brief Create a string from a formated string
inline std::string fmtstr(const std::string& fmt, const std::vector<std::string>& args) {
    std::string s = fmt;
    for (auto&& e : args) {
      std::string::size_type n = s.find("%s");
      if (n==std::string::npos) return "** Ill-formated string ** " + fmt;
      s.replace(n, 2, e);
    }
    return s;
  }
inline std :: string fmtstr ( const std :: string & fmt , const std :: vector < std :: string > & args ) { std :: string s = fmt ; for ( auto && e : args ) { std :: string :: size_type n = s . find ( " " ) ; if ( n == std :: string :: npos ) return " " + fmt ; s . replace ( n , 2 , e ) ; } return s ; }
\brief Create a string from a formated string
\ brief Create a string from a formated string