NXC
Version 1.2.1 r5
|
Functions for use with NXC array types. More...
Functions | |
void | ArrayBuild (variant &aout[], variant src1, variant src2,..., variant srcN) |
Build an array. | |
unsigned int | ArrayLen (variant data[]) |
Get array length. | |
void | ArrayInit (variant &aout[], variant value, unsigned int count) |
Initialize an array. | |
void | ArraySubset (variant &aout[], variant asrc[], unsigned int idx, unsigned int len) |
Copy an array subset. | |
void | ArrayIndex (variant &out, variant asrc[], unsigned int idx) |
Extract item from an array. | |
void | ArrayReplace (variant &asrc[], unsigned int idx, variant value) |
Replace items in an array. | |
variant | ArraySum (const variant &src[], unsigned int idx, unsigned int len) |
Calculate the sum of the elements in a numeric array. | |
variant | ArrayMean (const variant &src[], unsigned int idx, unsigned int len) |
Calculate the mean of the elements in a numeric array. | |
variant | ArraySumSqr (const variant &src[], unsigned int idx, unsigned int len) |
Calculate the sum of the squares of the elements in a numeric array. | |
variant | ArrayStd (const variant &src[], unsigned int idx, unsigned int len) |
Calculate the standard deviation of the elements in a numeric array. | |
variant | ArrayMin (const variant &src[], unsigned int idx, unsigned int len) |
Calculate the minimum of the elements in a numeric array. | |
variant | ArrayMax (const variant &src[], unsigned int idx, unsigned int len) |
Calculate the maximum of the elements in a numeric array. | |
void | ArraySort (variant &dest[], const variant &src[], unsigned int idx, unsigned int len) |
Sort the elements in a numeric array. | |
string | UpperCase (string src) |
Uppercase the characters in a string. | |
string | LowerCase (string src) |
Lowercase the characters in a string. | |
string | UpperCaseEx (string src, unsigned int idx, unsigned int len) |
Uppercase some of the characters in a string. | |
string | LowerCaseEx (string src, unsigned int idx, unsigned int len) |
Lowercase some of the characters in a string. | |
void | ArrayOp (const byte op, variant &dest, const variant &src[], unsigned int idx, unsigned int len) |
Operate on numeric arrays. | |
Functions for use with NXC array types.