MCPcopy Create free account
hub / github.com/Kitware/VTK / GetStringSize

Method GetStringSize

Wrapping/PythonCore/vtkPythonArgs.cxx:1607–1620  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Checking size of string arg.

Source from the content-addressed store, hash-verified

1605//------------------------------------------------------------------------------
1606// Checking size of string arg.
1607size_t vtkPythonArgs::GetStringSize(int i)
1608{
1609 size_t size = 0;
1610 if (this->M + i < this->N)
1611 {
1612 PyObject* o = PyTuple_GetItem(this->Args, this->M + i);
1613 size = vtkPythonGetStringSize(o);
1614 if (size == 0 && PySequence_Check(o))
1615 {
1616 size = PySequence_Size(o);
1617 }
1618 }
1619 return size;
1620}
1621
1622//------------------------------------------------------------------------------
1623// Check if 'm' equals 'n', and report an error for arg i if not.

Callers

nothing calls this directly

Calls 1

vtkPythonGetStringSizeFunction · 0.85

Tested by

no test coverage detected