libslic3r
Library for generating gcode from 3d models
utils.hpp
Go to the documentation of this file.
1 #ifndef UTILS_HPP
2 #define UTILS_HPP
3 
4 #include <vector>
5 #include <string>
6 
8 
10 std::vector<std::string>
11 split_at_regex(const std::string& input, const std::string& regex);
12 
13 std::string trim_zeroes(std::string in);
14 std::string _trim_zeroes(std::string in);
15 
16 #endif // UTILS_HPP
std::string trim_zeroes(std::string in)
Remove extra zeroes generated from std::to_string on doubles.
Definition: utils.cpp:56
std::string _trim_zeroes(std::string in)
Definition: utils.cpp:54
std::vector< std::string > split_at_regex(const std::string &input, const std::string &regex)
Utility functions that aren&#39;t necessarily part of libslic3r but are used by it.
Definition: utils.cpp:45