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

Class CharBuffer

source code

object --+
         |
        CharBuffer

Helps reading NEXUS-words and characters from a buffer.

Instance Methods [hide private]
 
__init__(self, string)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
peek(self) source code
 
peek_nonwhitespace(self) source code
 
next(self) source code
 
next_nonwhitespace(self) source code
 
skip_whitespace(self) source code
 
next_until(self, target) source code
 
peek_word(self, word) source code
 
next_word(self)
Return the next NEXUS word from a string.
source code
 
rest(self)
Return the rest of the string without parsing.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, string)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

next_word(self)

source code 
Return the next NEXUS word from a string.

This deals with single and double quotes, whitespace and punctuation.