#include <calc.h>
|
| Calc (const std::string &str) |
|
std::string | as (std::string lang, std::string *msg=nullptr) const |
| Convert the Alg CALC contents into a language command. More...
|
|
|
static std::string | as (const std::string &str, std::string lang, std::string *msg=nullptr) |
|
|
bool | _changeOperator (std::string &str, std::string lang, std::string *msg=nullptr) const |
|
bool | _changeFunction (std::string &str, std::string lang, std::string *msg=nullptr) const |
|
bool | _changeSuperScript (std::string &str, std::string lang, std::string *msg=nullptr) const |
|
bool | _changeSubScript (std::string &str, std::string lang, int8_t *d=nullptr, std::string *msg=nullptr) const |
|
bool | _changeParen (std::string &str, std::string lang, std::string *msg=nullptr) const |
|
void | _msg (std::string *msg, const std::string &content) const |
|
void | _addArma (std::string &str, const std::string &func) const |
|
void | _addMmce (std::string &str, const std::string &func) const |
|
◆ Calc()
Calc::Calc |
( |
const std::string & |
str | ) |
|
◆ _addArma()
void Calc::_addArma |
( |
std::string & |
str, |
|
|
const std::string & |
func |
|
) |
| const |
|
inlineprivate |
◆ _addMmce()
void Calc::_addMmce |
( |
std::string & |
str, |
|
|
const std::string & |
func |
|
) |
| const |
|
inlineprivate |
◆ _changeFunction()
bool Calc::_changeFunction |
( |
std::string & |
str, |
|
|
std::string |
lang, |
|
|
std::string * |
msg = nullptr |
|
) |
| const |
|
private |
◆ _changeOperator()
bool Calc::_changeOperator |
( |
std::string & |
str, |
|
|
std::string |
lang, |
|
|
std::string * |
msg = nullptr |
|
) |
| const |
|
private |
◆ _changeParen()
bool Calc::_changeParen |
( |
std::string & |
str, |
|
|
std::string |
lang, |
|
|
std::string * |
msg = nullptr |
|
) |
| const |
|
private |
◆ _changeSubScript()
bool Calc::_changeSubScript |
( |
std::string & |
str, |
|
|
std::string |
lang, |
|
|
int8_t * |
d = nullptr , |
|
|
std::string * |
msg = nullptr |
|
) |
| const |
|
private |
◆ _changeSuperScript()
bool Calc::_changeSuperScript |
( |
std::string & |
str, |
|
|
std::string |
lang, |
|
|
std::string * |
msg = nullptr |
|
) |
| const |
|
private |
◆ _msg()
void Calc::_msg |
( |
std::string * |
msg, |
|
|
const std::string & |
content |
|
) |
| const |
|
inlineprivate |
◆ as() [1/2]
std::string Calc::as |
( |
const std::string & |
str, |
|
|
std::string |
lang, |
|
|
std::string * |
msg = nullptr |
|
) |
| |
|
inlinestatic |
◆ as() [2/2]
std::string Calc::as |
( |
std::string |
lang, |
|
|
std::string * |
msg = nullptr |
|
) |
| const |
Convert the Alg CALC contents into a language command.
- Parameters
-
lang | Language ("cpp", "py", "matlab" or "octave"). |
msg | Pointer to error message string. |
- Returns
- (std::string) The converted string.
◆ _str
The documentation for this class was generated from the following files: