MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / Strs_len

Function Strs_len

python/stringzilla.c:1990–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1988}
1989
1990static Py_ssize_t Strs_len(Strs *self) {
1991 switch (self->layout) {
1992 case STRS_U32_TAPE: return self->data.u32_tape.count;
1993 case STRS_U32_TAPE_VIEW: return self->data.u32_tape_view.count;
1994 case STRS_U64_TAPE: return self->data.u64_tape.count;
1995 case STRS_U64_TAPE_VIEW: return self->data.u64_tape_view.count;
1996 case STRS_FRAGMENTED: return self->data.fragmented.count;
1997 default: return 0;
1998 }
1999}
2000
2001static PyObject *Strs_getitem(Strs *self, Py_ssize_t i) {
2002

Callers 8

Strs_getitemFunction · 0.85
Strs_subscriptFunction · 0.85
Strs_inFunction · 0.85
Strs_richcompareFunction · 0.85
Strs_argsortFunction · 0.85
Strs_sampleFunction · 0.85
Strs_reprFunction · 0.85
Strs_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…