28#include "../structures.hpp"
29#include "../ui/error.hpp"
30#include "../settings.hpp"
35long long int intCast(
double number);
36long long int intCast(
const std::complex<double>& number);
37bool isInt(
const std::complex<double>& number);
40int findParameter(
const std::string& sCmd,
const std::string& sParam,
const char cFollowing =
' ');
44bool isMultiValue(
const std::string& sExpr,
bool bIgnoreClosingParenthesis =
false);
45std::string
replaceToTeX(
const std::string& sString,
bool replaceForTeXFile =
false);
49void moveFile(
const std::string&,
const std::string&);
50void copyFile(
const std::string&,
const std::string&);
64bool isToStringArg(
const std::string& sExpr,
unsigned int nPos);
67bool checkDelimiter(
const std::string& sToken,
bool stringdelim =
false);
68std::vector<std::string>
splitIntoLines(std::string sOutput,
size_t lineWidth,
bool bAllowDashBreaks =
true,
int nFirstIndent = 4,
int nIndent = 4);
69std::string
outputString(std::vector<std::string> stringInLines,
int nFirstIndent,
int nIndent);
70std::string
LineBreak(std::string sOutput,
const Settings& _option,
bool bAllowDashBreaks =
true,
int nFirstIndent = 4,
int nIndent = 4);
71double Linearize(
double x_0,
double y_0,
double x_1,
double y_1);
73void make_progressBar(
int nStep,
int nFirstStep = 1,
int nFinalStep = 100,
const std::string& sType =
"std");
78void eraseToken(std::string& sExpr,
const std::string& sToken,
bool bTokenHasValue =
false);
79std::string
getFileInfo(
const std::string& sFilename);
80std::string
decodeNameSpace(std::string sCommandLine,
const std::string& sThisNameSpace);
109double intPower(
double dNumber,
int nExponent);
110std::complex<double>
intPower(
const std::complex<double>& dNumber,
int nExponent);
113std::string
getNextIndex(std::string& sArgList,
bool bCut =
true);
130bool isToCmd(
const std::string& sCmd,
unsigned int nPos);
133std::vector<std::string>
getFileList(
const std::string& sDirectory,
const Settings& _option,
int nFlags = 0);
134std::vector<std::string>
getFolderList(
const std::string& sDirectory,
const Settings& _option,
int nFlags = 0);
138 template <
typename Word>
139 inline std::ostream&
write_word( std::ostream& outs, Word value,
unsigned size =
sizeof( Word ) )
141 for (; size; --size, value >>= 8)
142 outs.put(
static_cast <char> (value & 0xFF) );
146 template <
typename Word>
147 inline std::istream&
read_word( std::istream& ins, Word& value,
unsigned size =
sizeof( Word ) )
149 for (
unsigned n = 0, value = 0; n < size; ++n)
150 value |= ins.get() << (8 * n);
157 template <
typename Word>
158 inline std::ostream&
write_word( std::ostream& outs, Word value,
unsigned size =
sizeof( Word ) )
161 outs.put(
static_cast <char> ( (value >> (8 * --size)) & 0xFF ));
165 template <
typename Word>
166 inline std::istream&
read_word( std::istream& ins, Word& value,
unsigned size =
sizeof( Word ) )
168 for (value = 0; size; --size)
169 value = (value << 8) | ins.get();
177void replaceStringMethod(std::string& sLine,
size_t nPos,
size_t nLength,
const std::string& sReplacement);
This class extends the std::vector for endlessness.
This class manages the setting values of the internal (kernel) settings of this application.
This class is the immutable (const) version of a string view. It can be constructed from a MutableStr...
std::istream & read_word(std::istream &ins, Word &value, unsigned size=sizeof(Word))
std::ostream & write_word(std::ostream &outs, Word value, unsigned size=sizeof(Word))
std::ostream & write_word(std::ostream &outs, Word value, unsigned size=sizeof(Word))
std::istream & read_word(std::istream &ins, Word &value, unsigned size=sizeof(Word))
bool isnan(const value_type &v)
bool isinf(const value_type &v)
Structure for the findCommand function.