|
@@ -46,7 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
#include "STEPFileReader.h"
|
|
#include "STEPFileReader.h"
|
|
#include "STEPFileEncoding.h"
|
|
#include "STEPFileEncoding.h"
|
|
#include "TinyFormatter.h"
|
|
#include "TinyFormatter.h"
|
|
-#include "fast_atof.h"
|
|
|
|
|
|
+#include "fast_atof.h"
|
|
#include <boost/make_shared.hpp>
|
|
#include <boost/make_shared.hpp>
|
|
|
|
|
|
|
|
|
|
@@ -55,28 +55,6 @@ namespace EXPRESS = STEP::EXPRESS;
|
|
|
|
|
|
#include <functional>
|
|
#include <functional>
|
|
|
|
|
|
-// ------------------------------------------------------------------------------------------------
|
|
|
|
-// From http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring
|
|
|
|
-
|
|
|
|
-// trim from start
|
|
|
|
-static inline std::string <rim(std::string &s) {
|
|
|
|
- s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1( std::ptr_fun(Assimp::IsSpace<char>))));
|
|
|
|
- return s;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-// trim from end
|
|
|
|
-static inline std::string &rtrim(std::string &s) {
|
|
|
|
- s.erase(std::find_if(s.rbegin(), s.rend(), std::not1( std::ptr_fun(Assimp::IsSpace<char>))).base(),s.end());
|
|
|
|
- return s;
|
|
|
|
-}
|
|
|
|
-// trim from both ends
|
|
|
|
-static inline std::string &trim(std::string &s) {
|
|
|
|
- return ltrim(rtrim(s));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
std::string AddLineNumber(const std::string& s,uint64_t line /*= LINE_NOT_SPECIFIED*/, const std::string& prefix = "")
|
|
std::string AddLineNumber(const std::string& s,uint64_t line /*= LINE_NOT_SPECIFIED*/, const std::string& prefix = "")
|
|
{
|
|
{
|