FEDEM Solver
R8.0
Source code of the dynamics solver
|
Functions | |
char * | CopyStr (const char *s, int i1=0, int i2=0) |
The string between to indices is returned. More... | |
char * | SimplifyStr (char *s) |
Outer bracket of the string is removed. More... | |
char * | SupprSpaces (char *s) |
All spaces in a string is removed. More... | |
char * | InsStr (const char *s, int n, char c) |
A character is inserted into string in a given position. More... | |
bool | EqStr (const char *s1, const char *s2) |
Equality of string one and two is checked. More... | |
bool | CompStr (const char *s, int n, const char *s2) |
Searchs a string for another string from given position. More... | |
bool | IsNumeric (const char *s) |
Checks if a string is a number. More... | |
int | SearchCorOpenbracket (const char *s, int n) |
Searchs a string, from a given position, for a corresponding bracket to '('. More... | |
int | SearchCorClosebracket (const char *s, int n) |
Searchs a string, from a given position, for a corresponding bracket to ')'. More... | |
int | SearchOperator (const char *s, FFaMathExpr::ROperator op) |
A string is searched for a given operator. More... | |
int | GetFunction (const char *s, int n, FFaMathExpr::ROperator &fn) |
Searchs a string for a function from a given position. More... | |
int | IsVar (const char *s, int n, int nvar, FFaMathVar **ppvar) |
int | IsPi (const char *s, int n=0) |
Searchs a string for the constant "pi" from a given position. More... | |
int | IsFunction (const char *s, int n, int nfunc, FFaMathFunction **ppfunc) |
Searchs a string or a function f(*) for a function from a given position. More... | |
char * | IsolateVars (char *s, int nvar, FFaMathVar **ppvar) |
Variables in a string is isolated with brackets. More... | |
char * | IsolateNumbers (char *s, int nvar, FFaMathVar **ppvar, int nfunc, FFaMathFunction **ppfunc) |
Isolates numbers in a string or function f(*) with brackets. More... | |
bool FFaMathString::CompStr | ( | const char * | s, |
int | n, | ||
const char * | s2 | ||
) |
Searchs a string for another string from given position.
s | String to search in |
n | Position index |
s2 | String to be found |
char * FFaMathString::CopyStr | ( | const char * | s, |
int | i1 = 0 , |
||
int | i2 = 0 |
||
) |
The string between to indices is returned.
s | String |
i1 | Start index |
i2 | Stopp index |
If i1 and i2 are both zero, the whole string is copied.
bool FFaMathString::EqStr | ( | const char * | s1, |
const char * | s2 | ||
) |
Equality of string one and two is checked.
s1 | First string |
s2 | Second string |
int FFaMathString::GetFunction | ( | const char * | s, |
int | n, | ||
FFaMathExpr::ROperator & | fn | ||
) |
Searchs a string for a function from a given position.
s | String |
n | Position index |
fn | The function found, or ErrOp if not found |
char * FFaMathString::InsStr | ( | const char * | s, |
int | n, | ||
char | c | ||
) |
A character is inserted into string in a given position.
s | String |
n | Position index |
c | Character to be inserted |
int FFaMathString::IsFunction | ( | const char * | s, |
int | n, | ||
int | nfunc, | ||
FFaMathFunction ** | ppfunc | ||
) |
Searchs a string or a function f(*) for a function from a given position.
s | String |
n | Position index |
nfunc | Function index |
ppfunc | Function |
bool FFaMathString::IsNumeric | ( | const char * | s | ) |
Checks if a string is a number.
s | string to be evaluated |
char * FFaMathString::IsolateNumbers | ( | char * | s, |
int | nvar, | ||
FFaMathVar ** | ppvar, | ||
int | nfunc, | ||
FFaMathFunction ** | ppfunc | ||
) |
Isolates numbers in a string or function f(*) with brackets.
s | String |
nvar | Variable index |
ppvar | Variable |
nfunc | Function index |
ppfunc | Function |
char * FFaMathString::IsolateVars | ( | char * | s, |
int | nvar, | ||
FFaMathVar ** | ppvar | ||
) |
Variables in a string is isolated with brackets.
s | String |
nvar | Variable index |
ppvar | Variable |
int FFaMathString::IsPi | ( | const char * | s, |
int | n = 0 |
||
) |
Searchs a string for the constant "pi" from a given position.
s | String |
n | Position index |
int FFaMathString::IsVar | ( | const char * | s, |
int | n, | ||
int | nvar, | ||
FFaMathVar ** | ppvar | ||
) |
int FFaMathString::SearchCorClosebracket | ( | const char * | s, |
int | n | ||
) |
Searchs a string, from a given position, for a corresponding bracket to ')'.
s | String |
n | Position index |
int FFaMathString::SearchCorOpenbracket | ( | const char * | s, |
int | n | ||
) |
Searchs a string, from a given position, for a corresponding bracket to '('.
s | String |
n | Position index |
int FFaMathString::SearchOperator | ( | const char * | s, |
FFaMathExpr::ROperator | op | ||
) |
A string is searched for a given operator.
s | String |
op | Operator to be found |
char * FFaMathString::SimplifyStr | ( | char * | s | ) |
Outer bracket of the string is removed.
s | String |
char * FFaMathString::SupprSpaces | ( | char * | s | ) |
All spaces in a string is removed.
s | String to be modified |