| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
basestring --+
|
SourcedString --+
|
CompoundSourcedString
A string constructed by concatenating substrings from multiple sources, and annotated with information about the locations where those substrings were originally found. See SourcedString for more information.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Splitting & Stripping Methods | |||
|---|---|---|---|
|
Inherited from |
|||
| String Concatenation Methods | |||
|
Inherited from |
|||
| Justification Methods | |||
|
Inherited from |
|||
| Replacement Methods | |||
|
Inherited from |
|||
| Unicode | |||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Display | |||
|
Inherited from Inherited from |
|||
|
|||
| a new object with type S, a subtype of T |
|
||
| String Concatenation Methods | |||
|---|---|---|---|
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
| Splitting & Stripping Methods | |||
|---|---|---|---|
|
Inherited from |
|||
| Display | |||
|
Inherited from |
|||
|
|||
|
substrings The tuple of substrings that compose this compound sourced string. |
|||
|
|||
|
sources A sorted tuple of (index, source) pairs.
|
|||
|
|||
|
Construct a new compound sourced string that combines the given list of substrings. Typically, compound sourced strings should not be constructed directly; instead, use SourcedString.concat(), which flattens nested compound sourced strings, and merges adjacent substrings when possible.
|
|
|
Helper for self.decode(). Returns a unicode-decoded version of
this SourcedString. This is used in the special case where the decoded string has the same length that the source string does. As a result, we can safely assume that each character is encoded with one byte; so we can just reuse our source. E.g., this will happen when decoding an ASCII string with utf-8.
|
|
|||
substringsThe tuple of substrings that compose this compound sourced string. Every compound sourced string is required to have at least two substrings; and the substrings themselves may never be CompoundSourcedStrings. |
|
|||
sourcesA sorted tuple of(index, source) pairs. Each such pair
specifies that the source of self[index:index+len(source)]
is source. Any characters for which no source is specified
are sourceless (e.g., plain Python characters that were concatenated to a
sourced string).
When working with simple sourced strings, it's usually easier to use
the |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:51 2011 | http://epydoc.sourceforge.net |