#include <Objects.hxx>
Public Member Functions | |
virtual bool | accepts (PyObject *pyob) const |
std::string | as_std_string (const char *encoding, const char *error="strict") const |
std::string | as_std_string () const |
unicodestring | as_unicodestring () const |
virtual size_type | capacity () const |
String | decode (const char *encoding, const char *error="strict") |
String | encode (const char *encoding, const char *error="strict") const |
operator std::string () const | |
String & | operator= (const unicodestring &v) |
String & | operator= (const std::string &v) |
String & | operator= (PyObject *rhsp) |
String & | operator= (const Object &rhs) |
virtual size_type | size () const |
String (const char *v) | |
String (const char *v, int vsize) | |
String (const std::string &v, std::string::size_type vsize) | |
String (const std::string &s, const char *encoding, const char *error="strict") | |
String (const char *s, int len, const char *encoding, const char *error="strict") | |
String (const char *s, const char *encoding, const char *error="strict") | |
String (const std::string &v) | |
String () | |
String (const Object &ob) | |
String (PyObject *pyob, bool owned=false) |
Definition at line 2124 of file Python2/Objects.hxx.
Py::String::String | ( | PyObject * | pyob, | |
bool | owned = false | |||
) | [inline, explicit] |
Definition at line 2132 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const Object & | ob | ) | [inline] |
Definition at line 2137 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | ) | [inline] |
Definition at line 2142 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const std::string & | v | ) | [inline] |
Definition at line 2148 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const char * | s, | |
const char * | encoding, | |||
const char * | error = "strict" | |||
) | [inline] |
Definition at line 2155 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const char * | s, | |
int | len, | |||
const char * | encoding, | |||
const char * | error = "strict" | |||
) | [inline] |
Definition at line 2161 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const std::string & | s, | |
const char * | encoding, | |||
const char * | error = "strict" | |||
) | [inline] |
Definition at line 2167 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const std::string & | v, | |
std::string::size_type | vsize | |||
) | [inline] |
Definition at line 2173 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const char * | v, | |
int | vsize | |||
) | [inline] |
Definition at line 2180 of file Python2/Objects.hxx.
References Py::Object::validate().
Py::String::String | ( | const char * | v | ) | [inline] |
Definition at line 2186 of file Python2/Objects.hxx.
References Py::Object::validate().
virtual bool Py::String::accepts | ( | PyObject * | pyob | ) | const [inline, virtual] |
Reimplemented from Py::SeqBase< Char >.
Definition at line 2206 of file Python2/Objects.hxx.
References Py::_String_Check(), and Py::_Unicode_Check().
std::string Py::String::as_std_string | ( | const char * | encoding, | |
const char * | error = "strict" | |||
) | const |
Definition at line 84 of file Python2/cxx_extensions.cxx.
References as_std_string(), encode(), Py::Object::isUnicode(), and Py::Object::ptr().
std::string Py::String::as_std_string | ( | ) | const [inline] |
Definition at line 2262 of file Python2/Objects.hxx.
Referenced by as_std_string(), Gui::ViewProviderPythonFeatureImp::getDisplayModes(), initCompleteGui(), initStartGui(), operator std::string(), Gui::Application::sAddWorkbenchHandler(), Sandbox::PythonBaseClass::setattro(), Robot::WaypointPy::setName(), Robot::WaypointPy::setType(), Gui::Application::setupContextMenu(), App::PropertyPythonObject::toString(), Py::Object::validate(), Gui::Application::workbenchIcon(), Gui::Application::workbenchMenuText(), and Gui::Application::workbenchToolTip().
unicodestring Py::String::as_unicodestring | ( | ) | const [inline] |
Definition at line 2276 of file Python2/Objects.hxx.
virtual size_type Py::String::capacity | ( | ) | const [inline, virtual] |
Reimplemented from Py::SeqBase< Char >.
Definition at line 2127 of file Python2/Objects.hxx.
References Py::SeqBase< T >::max_size().
String Py::String::decode | ( | const char * | encoding, | |
const char * | error = "strict" | |||
) | [inline] |
Definition at line 2239 of file Python2/Objects.hxx.
References draftlibs::dxfReader::error(), Py::Object::Object(), and Py::Object::ptr().
String Py::String::encode | ( | const char * | encoding, | |
const char * | error = "strict" | |||
) | const [inline] |
Definition at line 2227 of file Python2/Objects.hxx.
References draftlibs::dxfReader::error(), Py::Object::isUnicode(), and Py::Object::ptr().
Referenced by as_std_string().
Py::String::operator std::string | ( | ) | const [inline] |
Definition at line 2257 of file Python2/Objects.hxx.
References as_std_string().
String& Py::String::operator= | ( | const unicodestring & | v | ) | [inline] |
Definition at line 2218 of file Python2/Objects.hxx.
String& Py::String::operator= | ( | const std::string & | v | ) | [inline] |
Definition at line 2212 of file Python2/Objects.hxx.
Reimplemented from Py::SeqBase< Char >.
Definition at line 2198 of file Python2/Objects.hxx.
References Py::Object::ptr().
Reimplemented from Py::SeqBase< Char >.
Definition at line 2193 of file Python2/Objects.hxx.
virtual size_type Py::String::size | ( | ) | const [inline, virtual] |
Reimplemented from Py::SeqBase< Char >.
Definition at line 2245 of file Python2/Objects.hxx.
References Py::Object::isUnicode(), and Py::Object::ptr().
Referenced by Gui::PythonStderr::write(), and Gui::PythonStdout::write().