Cppcheck
Functions
mathlib.cpp File Reference
#include "mathlib.h"
#include "errortypes.h"
#include "utils.h"
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <exception>
#include <limits>
#include <locale>
#include <sstream>
#include <stdexcept>
#include <numeric>
#include <simplecpp.h>

Go to the source code of this file.

Functions

static double myStod (const std::string &str, std::string::const_iterator from, std::string::const_iterator to, int base)
 
static double floatHexToDoubleNumber (const std::string &str)
 
static bool isValidIntegerSuffixIt (std::string::const_iterator it, std::string::const_iterator end, bool supportMicrosoftExtensions=true)
 
static std::string intsuffix (const std::string &first, const std::string &second)
 
MathLib::value operator+ (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator- (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator* (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator/ (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator% (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator& (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator| (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator^ (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator<< (const MathLib::value &v1, const MathLib::value &v2)
 
MathLib::value operator>> (const MathLib::value &v1, const MathLib::value &v2)
 

Function Documentation

◆ floatHexToDoubleNumber()

static double floatHexToDoubleNumber ( const std::string &  str)
static

Definition at line 477 of file mathlib.cpp.

References myStod().

Referenced by MathLib::toDoubleNumber().

◆ intsuffix()

static std::string intsuffix ( const std::string &  first,
const std::string &  second 
)
static

◆ isValidIntegerSuffixIt()

static bool isValidIntegerSuffixIt ( std::string::const_iterator  it,
std::string::const_iterator  end,
bool  supportMicrosoftExtensions = true 
)
static

◆ myStod()

static double myStod ( const std::string &  str,
std::string::const_iterator  from,
std::string::const_iterator  to,
int  base 
)
static

Definition at line 441 of file mathlib.cpp.

Referenced by floatHexToDoubleNumber().