parseTools
index


 
Tools to help with string parsing.

 
Functions
       
findNested(start, stop, startIndx, buf, initDepth=1)
Find nested single character delimiter pairs (start,stop) such as (), [],
etc, in buf argument, starting at offset startIndx. initDepth specifies
the number of leading start characters already seen. Returns the index of the
closing delimiter.
readFloat(string)
Read a floating point number from the leading portion of string.
Return a tuple of the number and the string with the number removed.
readInt(string)
Read an integer from the leading portion of string.
Return a tuple of the number and the string with the number removed.