libslic3r
Library for generating gcode from 3d models
Functions
utils.hpp File Reference
#include <vector>
#include <string>

Go to the source code of this file.

Functions

std::vector< std::string > split_at_regex (const std::string &input, const std::string &regex)
 Utility functions that aren't necessarily part of libslic3r but are used by it. More...
 
std::string trim_zeroes (std::string in)
 Remove extra zeroes generated from std::to_string on doubles. More...
 
std::string _trim_zeroes (std::string in)
 

Function Documentation

◆ _trim_zeroes()

std::string _trim_zeroes ( std::string  in)

◆ split_at_regex()

std::vector<std::string> split_at_regex ( const std::string &  input,
const std::string &  regex 
)

Utility functions that aren't necessarily part of libslic3r but are used by it.

Separate a string based on some regular expression string.

◆ trim_zeroes()

std::string trim_zeroes ( std::string  in)

Remove extra zeroes generated from std::to_string on doubles.