Package Bio :: Package Nexus :: Module Nexus :: Class CharBuffer
[show private | hide private]
[frames | no frames]

Class CharBuffer


Helps reading NEXUS-words and characters from a buffer.
Method Summary
  __init__(self, string)
  next(self)
  next_nonwhitespace(self)
  next_until(self, target)
  next_word(self)
Return the next NEXUS word from a string, dealing with single and double quotes, whitespace and punctuation.
  peek(self)
  peek_nonwhitespace(self)
  peek_word(self, word)
  rest(self)
Return the rest of the string without parsing.
  skip_whitespace(self)

Method Details

next_word(self)

Return the next NEXUS word from a string, dealing with single and double quotes, whitespace and punctuation.

rest(self)

Return the rest of the string without parsing.

Generated by Epydoc 2.1 on Mon Aug 27 16:43:45 2007 http://epydoc.sf.net