OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::NumericStrCompare Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevUtil.h>

Public Member Functions

bool operator() (const std::string &a, const std::string &b) const noexcept

Detailed Description

Member Function Documentation

◆ operator()()

bool Slic3r::NumericStrCompare::operator() ( const std::string & a,
const std::string & b ) const
inlinenoexcept
111 {
112 int ai = -1;
113 try {
114 ai = std::stoi(a);
115 } catch (...) { };
116
117 int bi = -1;
118 try {
119 bi = std::stoi(b);
120 } catch (...) { };
121
122 return ai < bi;
123 }

The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevUtil.h