|
Selfie
|
Public Member Functions | |
| None | __init__ (self, str base, int startIndex=0, Optional[int] endIndex=None) |
| int | __len__ (self) |
| str | __getitem__ (self, int index) |
| "Slice" | subSequence (self, int start, int end) |
| "Slice" | trim (self) |
| str | __str__ (self) |
| bool | sameAs (self, Union["Slice", str] other) |
| int | indexOf (self, str lookingFor, int startOffset=0) |
| "Slice" | unixLine (self, int count) |
| bool | __eq__ (self, object other) |
| int | __hash__ (self) |
| str | replaceSelfWith (self, str s) |
| int | count (self, str char) |
| int | baseLineAtOffset (self, int index) |
| bool | starts_with (self, str prefix) |
Public Attributes | |
| base = base | |
| self.endIndex] | startIndex = startIndex |
| ] | endIndex = endIndex if endIndex is not None else len(base) |
Represents a slice of a base string from startIndex to endIndex.
| None selfie_lib.Slice.Slice.__init__ | ( | self, | |
| str | base, | ||
| int | startIndex = 0, | ||
| Optional[int] | endIndex = None ) |
| bool selfie_lib.Slice.Slice.__eq__ | ( | self, | |
| object | other ) |
| str selfie_lib.Slice.Slice.__getitem__ | ( | self, | |
| int | index ) |
| int selfie_lib.Slice.Slice.__hash__ | ( | self | ) |
| int selfie_lib.Slice.Slice.__len__ | ( | self | ) |
| str selfie_lib.Slice.Slice.__str__ | ( | self | ) |
| int selfie_lib.Slice.Slice.baseLineAtOffset | ( | self, | |
| int | index ) |
| int selfie_lib.Slice.Slice.count | ( | self, | |
| str | char ) |
| int selfie_lib.Slice.Slice.indexOf | ( | self, | |
| str | lookingFor, | ||
| int | startOffset = 0 ) |
| str selfie_lib.Slice.Slice.replaceSelfWith | ( | self, | |
| str | s ) |
| bool selfie_lib.Slice.Slice.sameAs | ( | self, | |
| Union["Slice", str] | other ) |
Definition at line 42 of file Slice.py.
| bool selfie_lib.Slice.Slice.starts_with | ( | self, | |
| str | prefix ) |
| "Slice" selfie_lib.Slice.Slice.subSequence | ( | self, | |
| int | start, | ||
| int | end ) |
| "Slice" selfie_lib.Slice.Slice.trim | ( | self | ) |
Definition at line 31 of file Slice.py.
| "Slice" selfie_lib.Slice.Slice.unixLine | ( | self, | |
| int | count ) |
Definition at line 57 of file Slice.py.
| ] selfie_lib.Slice.Slice.endIndex = endIndex if endIndex is not None else len(base) |
| self.endIndex] selfie_lib.Slice.Slice.startIndex = startIndex |