libslic3r
Library for generating gcode from 3d models
Functions
utils.cpp File Reference
#include "utils.hpp"
#include <regex>
#include <xsinit.h>
#include <cstdarg>

Functions

void confess_at (const char *file, int line, const char *func, const char *pat,...)
 
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)
 
std::string trim_zeroes (std::string in)
 Remove extra zeroes generated from std::to_string on doubles. More...
 

Function Documentation

◆ _trim_zeroes()

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

◆ confess_at()

void confess_at ( const char *  file,
int  line,
const char *  func,
const char *  pat,
  ... 
)

◆ 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.