Types
PyStrIterObject = ref object of PyObject ascii*: bool len*: int items*: UnicodeVariant idx*: int getItem*: Getter
- Source Edit
Lets
pyStrIterObjectType {.inject.} = newPyType("striter", pyObjectType)
- Source Edit
Procs
proc countPyStrObjectMethod(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- Source Edit
proc find(self: PyStrObject; target: char; start = 0; stop = self.len): int {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc find(self: PyStrObject; target: PyStrObject; start = 0; stop = self.len): int {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc find(self: PyStrObject; target: PyStrObject; start, stop: PyIntObject): PyObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc find(self: UnicodeVariant; target: char; start = 0; stop = self.len): int {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc findPyStrObjectMethod(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- Source Edit
proc hashPyStrObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc indexPyStrObjectMethod(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- Source Edit
proc iternextPyStrIterObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc iterPyStrIterObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc iterPyStrObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc joinPyStrObjectMethod(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc lenPyStrObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyStrIter(s: PyStrObject): PyStrIterObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyStrIterSimple(): PyStrIterObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyStrObjectMagic(args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc ofExactPyStrIterObject(obj`gensym39: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyStrIterObject(obj`gensym39: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc reprPyStrObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc rfind(self: PyStrObject; target: char; start = 0; stop = self.len): int {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc rfind(self: PyStrObject; target: PyStrObject; start = 0; stop = self.len): int {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc rfind(self: PyStrObject; target: PyStrObject; start, stop: PyIntObject): PyObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc rfind(self: UnicodeVariant; target: char; start = 0; stop = self.len): int {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc rfindPyStrObjectMethod(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- Source Edit
proc strPyStrObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc substring(self: PyStrObject; start, stop: int; res: var PyStrObject): PyIndexErrorObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc substringUnsafe(self: PyStrObject; start, stop: int): PyStrObject {. ...raises: [], tags: [RootEffect], forbids: [].}
-
PyUnicode_Substring
Nim's self.substr[start, stop+1]
assert start >= 0 and stop >= 0
Source Edit
Templates
template implMethodGenTargetAndStartStop() {.dirty.}
- Source Edit
template implMethodGenTargetAndStartStop(castTarget) {.dirty.}
- Source Edit