Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Official government website icon

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

icon-https

Secure .gov websites use HTTPS
A lock ( Lock Locked padlock icon )or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

NIH: National Institute of Diabetes and Digestive and Kidney Diseases NIH: National Institute of Diabetes and Digestive and Kidney Diseases
bit Xplor-NIH VMD-XPLOR
Pydoc: module parseTools
 
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.
  • Privacy Policy
  • Freedom of Information Act
  • Accessibility
  • Disclaimers
  • Copyright
  • Vulnerability Disclosure Policy
  • U.S. Department of Health and Human Services
  • National Institutes of Health