MCPcopy Create free account
hub / github.com/coin-or/CppAD / is_binary

Function is_binary

example/general/stack_machine.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 return number;
36}
37bool is_binary( const std::string &s )
38{ char ch = s[0];
39 bool binary = (strchr("+-*/.", ch) != 0);
40 return binary;
41}
42bool is_variable( const std::string &s )
43{ char ch = s[0];
44 bool variable = ('a' <= ch) && (ch <= 'z');

Callers 1

StackMachineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected