Rules: 1. Starting with the seventh position of a command string, space must not appear anywhere except a. before or after a left or right parenthesis b. before or after a comma c. inside a string ILLEGAL_SPACE
Reference pages: (33 - 34)
The reference pages are currently not consistent regarding optional space after a right parenthesis. The text says it is not allowed, but the EBNF for SRightParen says it is allowed. This affects only the closing right parentheses of a command, since every other right parenthesis is followed either by a comma or a right parenthesis, both of which may have space before them. The I++ response to this issue said that space should be allowed after a right parenthesis, so that is what this function does.
Starting at the seventh position (index 6), this removes from the _inputArray all spaces outside of strings. It does this by moving characters from right to left as necessary to fill in any spaces.
The n-1 in the termination condition of the "for" loop allows the NULL to be copied also.
Definition at line 4214 of file ippCommandParser.cpp.