MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / ExpSetNums

Function ExpSetNums

express.cpp:2799–2820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2797// that are concatenated in the given input string.
2798
2799flag ExpSetNums(int i, CONST char *sz)
2800{
2801 CONST char *pch, *pchT;
2802 flag fReal;
2803
2804 for (pch = sz; *pch; i++) {
2805 fReal = fFalse;
2806 for (pchT = pch; *pchT > ' '; pchT++)
2807 if (*pchT == '.')
2808 fReal = fTrue;
2809 if (!fReal) {
2810 if (!ExpSetN(i, NFromSz(pch)))
2811 return fFalse;
2812 } else {
2813 if (!ExpSetR(i, RFromSz(pch)))
2814 return fFalse;
2815 }
2816 for (pch = pchT; *pch && *pch <= ' '; pch++)
2817 ;
2818 }
2819 return fTrue;
2820}
2821
2822
2823// Return pointer to an AstroExpression custom string.

Callers 1

FProcessSwitchesFunction · 0.85

Calls 4

ExpSetNFunction · 0.85
NFromSzFunction · 0.85
ExpSetRFunction · 0.85
RFromSzFunction · 0.85

Tested by

no test coverage detected