Formats minimally release source files based on former clang-format
This commit is contained in:
387 files changed
+37323
-38074
No files matched your search
@@ -34,7 +34,6 @@ namespace N_SST
|
||||
class IntegerCalculator
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Describes the error happend while calculation of an expression
|
||||
*
|
||||
@@ -95,7 +94,7 @@ namespace N_SST
|
||||
* @param a_error
|
||||
* @param a_addErrorText
|
||||
*/
|
||||
int64_t calc(const std::string& a_calcText, E_Error& a_error, std::string* a_addErrorText = nullptr);
|
||||
int64_t calc(const std::string &a_calcText, E_Error &a_error, std::string *a_addErrorText = nullptr);
|
||||
|
||||
/**
|
||||
* Adds or changes a case-sensitive variable to the calculator.
|
||||
@@ -103,17 +102,16 @@ namespace N_SST
|
||||
* @param a_name
|
||||
* @param a_value
|
||||
*/
|
||||
void addVariable(const std::string& a_name, const int64_t a_value);
|
||||
void addVariable(const std::string &a_name, const int64_t a_value);
|
||||
|
||||
/**
|
||||
* Removes a case-sensitive variable from the calculator.
|
||||
*
|
||||
* @param a_name
|
||||
*/
|
||||
void removeVariable(const std::string& a_name);
|
||||
void removeVariable(const std::string &a_name);
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
* Contains all supported operations
|
||||
*/
|
||||
@@ -143,9 +141,12 @@ namespace N_SST
|
||||
* @param a_prevValue
|
||||
* @param a_initOp
|
||||
*/
|
||||
int64_t calc(const std::string& a_calcText, size_t& a_pos, bool& a_IsEndParanthesis,
|
||||
const std::string& a_prevOp = std::string(), const int64_t a_prevValue = 0,
|
||||
const std::string& a_initOp = std::string());
|
||||
int64_t calc(const std::string &a_calcText,
|
||||
size_t &a_pos,
|
||||
bool &a_IsEndParanthesis,
|
||||
const std::string &a_prevOp = std::string(),
|
||||
const int64_t a_prevValue = 0,
|
||||
const std::string &a_initOp = std::string());
|
||||
|
||||
/**
|
||||
* Calculates an operation with respecting the priority of operations. This will
|
||||
@@ -158,8 +159,7 @@ namespace N_SST
|
||||
* @param a_value2
|
||||
* @param a_prevOp
|
||||
*/
|
||||
bool calcWithPriority(const std::string& a_calcText, size_t& a_pos, int64_t& a_value1,
|
||||
std::string& a_operation, int64_t a_value2, const std::string& a_prevOp);
|
||||
bool calcWithPriority(const std::string &a_calcText, size_t &a_pos, int64_t &a_value1, std::string &a_operation, int64_t a_value2, const std::string &a_prevOp);
|
||||
|
||||
/**
|
||||
* Returns the inverted a_value if a_isNegative is true. a_isNegative will be
|
||||
@@ -169,7 +169,7 @@ namespace N_SST
|
||||
* @param a_value
|
||||
* @param a_isNegative
|
||||
*/
|
||||
static int64_t calcSign(const int64_t a_value, bool& a_isNegative);
|
||||
static int64_t calcSign(const int64_t a_value, bool &a_isNegative);
|
||||
|
||||
/**
|
||||
* Converts the value in form of text to a number. The Text can be decimal, hex
|
||||
@@ -178,7 +178,7 @@ namespace N_SST
|
||||
* @param a_valueText
|
||||
* @param a_pos
|
||||
*/
|
||||
int64_t convertValue(const std::string& a_valueText, size_t& a_pos);
|
||||
int64_t convertValue(const std::string &a_valueText, size_t &a_pos);
|
||||
|
||||
/**
|
||||
* Returns the next token (with space as separator). Heading spaces will be
|
||||
@@ -187,14 +187,14 @@ namespace N_SST
|
||||
* @param a_calcText
|
||||
* @param a_pos
|
||||
*/
|
||||
static std::string getToken(const std::string& a_calcText, size_t& a_pos);
|
||||
static std::string getToken(const std::string &a_calcText, size_t &a_pos);
|
||||
|
||||
/**
|
||||
* returns true if a_operation is a known operation.
|
||||
*
|
||||
* @param a_operation
|
||||
*/
|
||||
bool isOperation(const std::string& a_operation) const;
|
||||
bool isOperation(const std::string &a_operation) const;
|
||||
|
||||
/**
|
||||
* Calculates the opeation a_operations with a_value1 as first and a_value2 as
|
||||
@@ -204,7 +204,7 @@ namespace N_SST
|
||||
* @param a_operation
|
||||
* @param a_value2
|
||||
*/
|
||||
int64_t doOperation(const int64_t a_value1, const std::string& a_operation, const int64_t a_value2);
|
||||
int64_t doOperation(const int64_t a_value1, const std::string &a_operation, const int64_t a_value2);
|
||||
|
||||
/**
|
||||
* returns true if priority of a_opeation1 is higher than priority of a_operation2.
|
||||
@@ -213,7 +213,7 @@ namespace N_SST
|
||||
* @param a_operation1
|
||||
* @param a_operation2
|
||||
*/
|
||||
bool isOperationPriorityHigher(const std::string& a_operation1, const std::string& a_operation2) const;
|
||||
bool isOperationPriorityHigher(const std::string &a_operation1, const std::string &a_operation2) const;
|
||||
|
||||
/**
|
||||
* Returns true if the variable named a_variableName is known and a_value will be
|
||||
@@ -223,7 +223,7 @@ namespace N_SST
|
||||
* @param a_variableName
|
||||
* @param a_value
|
||||
*/
|
||||
virtual bool getVariableValue(const std::string& a_variableName, int64_t& a_value) const;
|
||||
virtual bool getVariableValue(const std::string &a_variableName, int64_t &a_value) const;
|
||||
|
||||
/**
|
||||
* Returns true if a_char is a digit. When a_isHex is true, also the charactes a-f
|
||||
@@ -241,7 +241,7 @@ namespace N_SST
|
||||
*
|
||||
* @param a_operation
|
||||
*/
|
||||
int16_t getPriority(const std::string& a_operation) const;
|
||||
int16_t getPriority(const std::string &a_operation) const;
|
||||
|
||||
/**
|
||||
* replaces in a_haystack all a_searchText with a_replaceText (not greedy).
|
||||
@@ -250,8 +250,7 @@ namespace N_SST
|
||||
* @param a_searchText
|
||||
* @param a_replaceText
|
||||
*/
|
||||
static void replace(std::string& a_haystack, const std::string& a_searchText, const std::string& a_replaceText);
|
||||
|
||||
static void replace(std::string &a_haystack, const std::string &a_searchText, const std::string &a_replaceText);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user