Math387::ExtractCplx Function

TCplx ExtractCplx(const DewString &Source, int &Offset, const DewString &Delimiter);

Gets a complex number, extracted from string source.

#NameTypeDescription
1Sourceconst DewString &
2Offsetint &
3Delimiterconst DewString &

Returns: a complex number that was extracted from string Source looking from Offset and ended with Delimiter.

Remarks:

The Offset is modified to point to the first character after first found Delimiter in Source string. You can use this routine for processing a string of complex numbers separated by Delimiter. If the Delimiter is not Found, the function returns zero.

See Also: Math387::ExtractSample
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler