suanPan
Loading...
Searching...
No Matches
utility.cpp File Reference
#include "utility.h"
#include <suanPan.h>
Include dependency graph for utility.cpp:

Functions

void ignore_whitespace (std::istringstream &I)
 
std::string get_remaining (std::istringstream &I)
 
bool is_equal (const char *A, const char *B)
 
bool is_equal (const char A, const char B)
 
bool is_equal (const int A, const char B)
 
bool is_equal (const std::string &A, const char *B)
 
bool is_equal (const char *A, const std::string &B)
 
bool is_equal (const std::string &A, const std::string &B)
 
bool is_equal (const std::string_view A, const char *B)
 
bool is_equal (const char *A, const std::string_view B)
 
bool if_contain (const std::string &A, const char *B)
 
bool if_contain (const std::string &A, const std::string &B)
 
bool if_contain (std::string &&A, std::string &&B)
 
bool if_startswith (const std::string_view A, const std::string_view B)
 
bool is_true (const char *S)
 
bool is_false (const char *S)
 
bool is_true (const std::string &S)
 
bool is_false (const std::string &S)
 
bool is_integer (const std::string &S)
 
double perturb (const double input, const double fraction)
 

Function Documentation

◆ get_remaining()

std::string get_remaining ( std::istringstream &  I)
Here is the caller graph for this function:

◆ if_contain() [1/3]

bool if_contain ( const std::string &  A,
const char *  B 
)
Here is the caller graph for this function:

◆ if_contain() [2/3]

bool if_contain ( const std::string &  A,
const std::string &  B 
)

◆ if_contain() [3/3]

bool if_contain ( std::string &&  A,
std::string &&  B 
)
Here is the call graph for this function:

◆ if_startswith()

bool if_startswith ( const std::string_view  A,
const std::string_view  B 
)
Here is the caller graph for this function:

◆ ignore_whitespace()

void ignore_whitespace ( std::istringstream &  I)
Here is the call graph for this function:

◆ is_equal() [1/8]

bool is_equal ( const char *  A,
const char *  B 
)
Here is the caller graph for this function:

◆ is_equal() [2/8]

bool is_equal ( const char *  A,
const std::string &  B 
)
Here is the call graph for this function:

◆ is_equal() [3/8]

bool is_equal ( const char *  A,
const std::string_view  B 
)
Here is the call graph for this function:

◆ is_equal() [4/8]

bool is_equal ( const char  A,
const char  B 
)

◆ is_equal() [5/8]

bool is_equal ( const int  A,
const char  B 
)

◆ is_equal() [6/8]

bool is_equal ( const std::string &  A,
const char *  B 
)
Here is the call graph for this function:

◆ is_equal() [7/8]

bool is_equal ( const std::string &  A,
const std::string &  B 
)
Here is the call graph for this function:

◆ is_equal() [8/8]

bool is_equal ( const std::string_view  A,
const char *  B 
)
Here is the call graph for this function:

◆ is_false() [1/2]

bool is_false ( const char *  S)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_false() [2/2]

bool is_false ( const std::string &  S)
Here is the call graph for this function:

◆ is_integer()

bool is_integer ( const std::string &  S)
Here is the caller graph for this function:

◆ is_true() [1/2]

bool is_true ( const char *  S)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_true() [2/2]

bool is_true ( const std::string &  S)
Here is the call graph for this function:

◆ perturb()

double perturb ( const double  input,
const double  fraction 
)