parseSplitVector

Helper function for string parsing.

Signatures

  •   parseSplitVector( strWrap )

Details

The function is a helper function that does two things that are required during various deserialization (parsing) processes:

  • it parses a paramate vector
  • it splits off the respective part from the beginning of the string

The function is meant to be used within other deserialization functions only.

Parameters

strWrap

An object of the following form:

 {
   s: <string>
 }

The member s should start with the string representation of a paramate vector, i.e. with an initial substring '<[', followed by three comma separated numbers, followed by a subsequent substring ']>'. It can be followed by more content. The first vector is parsed and split off from the string, returning it effectively shorter. The string is wrapped in an object so the call happens by reference. Therefore, the modified string can be accessed by the calling function.

Return value

An object of type ref_Vector containing the value content of the first part of strWrap.s.