All is in the subject... I have an old MDL piece of code to translate to native code and the function "strpspc" is not supported now.
It's strange, when I try to googled to find information about this function, I found ... nothing...
Many thanks for your lights!
Philippe
strpspc = strip spaces
It will remove leading and trailing spaces for a character string.
HTH, YongAn
Answer Verified By: Philippe HALET
Unknown said:function "strpspc" is not supported
If you're writing C++ then install Boost. Now you can use Boost.trim...#include <boost/algorithm/string.hpp>using namespace std;using namespace boost;// ...std::string str1 (" Bonjour tout le monde! ");boost::trim (str1); // str1 == "Bonjour tout le monde!"
Or, just use the Bentley WString class (#include <WString.h>),.which has a Trim method.
If you build a pure MDL function, strpspc and its wide-character version mdlWideChar_trim are available.
Regards, Jon Summers LA Solutions