KiCad Pcbnew Python Scripting
Public Member Functions | Properties | List of all members
pcbnew.string Class Reference
Inheritance diagram for pcbnew.string:
Inheritance graph
[legend]

Public Member Functions

"std::basic_string< char >::size_type" length (self)
 
"std::basic_string< char >::size_type" max_size (self)
 
"std::basic_string< char >::size_type" capacity (self)
 
"void" reserve (self, "std::basic_string< char >::size_type" __res_arg=0)
 
"std::basic_string< char >::size_type" copy (self, "char *" __s, "std::basic_string< char >::size_type" __n, "std::basic_string< char >::size_type" __pos=0)
 
"char const *" c_str (self)
 
"std::basic_string< char >::size_type" find (self, *args)
 
"std::basic_string< char >::size_type" rfind (self, *args)
 
"std::basic_string< char >::size_type" find_first_of (self, *args)
 
"std::basic_string< char >::size_type" find_last_of (self, *args)
 
"std::basic_string< char >::size_type" find_first_not_of (self, *args)
 
"std::basic_string< char >::size_type" find_last_not_of (self, *args)
 
"std::basic_string< char >" substr (self, *args)
 
"bool" empty (self)
 
"std::basic_string< char >::size_type" size (self)
 
"void" swap (self, "string" v)
 
"std::basic_string< char >::iteratorbegin (self)
 
"std::basic_string< char >::iteratorend (self)
 
"std::basic_string< char >::reverse_iterator" rbegin (self)
 
"std::basic_string< char >::reverse_iterator" rend (self)
 
"std::basic_string< char >::allocator_type" get_allocator (self)
 
"std::basic_string< char >::iteratorerase (self, *args)
 
def __init__ (self, *args)
 
"void" assign (self, *args)
 
"void" resize (self, *args)
 
"swig::SwigPyIterator *" iterator (self)
 
def __iter__ (self)
 
"bool" __nonzero__ (self)
 
"bool" __bool__ (self)
 
"std::basic_string< char >::size_type" __len__ (self)
 
"std::basic_string< char,std::char_traits< char >,std::allocator< char > > *" __getslice__ (self, "std::basic_string< char >::difference_type" i, "std::basic_string< char >::difference_type" j)
 
"void" __setslice__ (self, *args)
 
"void" __delslice__ (self, "std::basic_string< char >::difference_type" i, "std::basic_string< char >::difference_type" j)
 
"void" __delitem__ (self, *args)
 
"std::basic_string< char >::value_type" __getitem__ (self, *args)
 
"void" __setitem__ (self, *args)
 
"void" insert (self, *args)
 
"std::basic_string< char > &" replace (self, *args)
 
"std::basic_string< char > &" __iadd__ (self, "string" v)
 
"std::basic_string< char,std::char_traits< char >,std::allocator< char > > *" __add__ (self, "string" v)
 
"std::basic_string< char,std::char_traits< char >,std::allocator< char > > *" __radd__ (self, "string" v)
 
"std::basic_string< char,std::char_traits< char >,std::allocator< char > >" __str__ (self)
 
"std::basic_ostream< char,std::char_traits< char > > &" __rlshift__ (self, "std::basic_ostream< char,std::char_traits< char > > &" out)
 
"bool" __eq__ (self, "string" v)
 
"bool" __ne__ (self, "string" v)
 
"bool" __gt__ (self, "string" v)
 
"bool" __lt__ (self, "string" v)
 
"bool" __ge__ (self, "string" v)
 
"bool" __le__ (self, "string" v)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Proxy of C++ std::basic_string< char > class.

Definition at line 146 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.string.__init__ (   self,
args 
)
    __init__(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
    __init__(string self) -> string
    __init__(string self, string other) -> string
    __init__(string self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string

Definition at line 268 of file pcbnew.py.

Here is the caller graph for this function:

Member Function Documentation

◆ __add__()

"std.basic_string< char,std.char_traits< char >,std.allocator< char > > *" pcbnew.string.__add__ (   self,
"string"  v 
)
__add__(string self, string v) -> string

Definition at line 378 of file pcbnew.py.

◆ __bool__()

"bool" pcbnew.string.__bool__ (   self)
__bool__(string self) -> bool

Definition at line 303 of file pcbnew.py.

◆ __delitem__()

"void" pcbnew.string.__delitem__ (   self,
args 
)
    __delitem__(string self, std::basic_string< char >::difference_type i)
    __delitem__(string self, PySliceObject * slice)

Definition at line 326 of file pcbnew.py.

Here is the caller graph for this function:

◆ __delslice__()

"void" pcbnew.string.__delslice__ (   self,
"std::basic_string< char >::difference_type"  i,
"std::basic_string< char >::difference_type"  j 
)
__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)

Definition at line 322 of file pcbnew.py.

◆ __eq__()

"bool" pcbnew.string.__eq__ (   self,
"string"  v 
)
__eq__(string self, string v) -> bool

Definition at line 394 of file pcbnew.py.

◆ __ge__()

"bool" pcbnew.string.__ge__ (   self,
"string"  v 
)
__ge__(string self, string v) -> bool

Definition at line 410 of file pcbnew.py.

◆ __getitem__()

"std.basic_string< char >.value_type" pcbnew.string.__getitem__ (   self,
args 
)
    __getitem__(string self, PySliceObject * slice) -> string
    __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type

Definition at line 333 of file pcbnew.py.

Here is the caller graph for this function:

◆ __getslice__()

"std.basic_string< char,std.char_traits< char >,std.allocator< char > > *" pcbnew.string.__getslice__ (   self,
"std::basic_string< char >::difference_type"  i,
"std::basic_string< char >::difference_type"  j 
)
__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string

Definition at line 311 of file pcbnew.py.

◆ __gt__()

"bool" pcbnew.string.__gt__ (   self,
"string"  v 
)
__gt__(string self, string v) -> bool

Definition at line 402 of file pcbnew.py.

◆ __iadd__()

"std.basic_string< char > &" pcbnew.string.__iadd__ (   self,
"string"  v 
)
__iadd__(string self, string v) -> string

Definition at line 374 of file pcbnew.py.

◆ __iter__()

def pcbnew.string.__iter__ (   self)

Definition at line 296 of file pcbnew.py.

◆ __le__()

"bool" pcbnew.string.__le__ (   self,
"string"  v 
)
__le__(string self, string v) -> bool

Definition at line 414 of file pcbnew.py.

◆ __len__()

"std.basic_string< char >.size_type" pcbnew.string.__len__ (   self)
__len__(string self) -> std::basic_string< char >::size_type

Definition at line 307 of file pcbnew.py.

◆ __lt__()

"bool" pcbnew.string.__lt__ (   self,
"string"  v 
)
__lt__(string self, string v) -> bool

Definition at line 406 of file pcbnew.py.

◆ __ne__()

"bool" pcbnew.string.__ne__ (   self,
"string"  v 
)
__ne__(string self, string v) -> bool

Definition at line 398 of file pcbnew.py.

◆ __nonzero__()

"bool" pcbnew.string.__nonzero__ (   self)
__nonzero__(string self) -> bool

Definition at line 299 of file pcbnew.py.

◆ __radd__()

"std.basic_string< char,std.char_traits< char >,std.allocator< char > > *" pcbnew.string.__radd__ (   self,
"string"  v 
)
__radd__(string self, string v) -> string

Definition at line 382 of file pcbnew.py.

◆ __rlshift__()

"std.basic_ostream< char,std.char_traits< char > > &" pcbnew.string.__rlshift__ (   self,
"std::basic_ostream< char,std::char_traits< char > > &"  out 
)
__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &

Definition at line 390 of file pcbnew.py.

◆ __setitem__()

"void" pcbnew.string.__setitem__ (   self,
args 
)
    __setitem__(string self, PySliceObject * slice, string v)
    __setitem__(string self, PySliceObject * slice)
    __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)

Definition at line 340 of file pcbnew.py.

Here is the caller graph for this function:

◆ __setslice__()

"void" pcbnew.string.__setslice__ (   self,
args 
)
    __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
    __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)

Definition at line 315 of file pcbnew.py.

Here is the caller graph for this function:

◆ __str__()

"std.basic_string< char,std.char_traits< char >,std.allocator< char > >" pcbnew.string.__str__ (   self)
__str__(string self) -> string

Definition at line 386 of file pcbnew.py.

Here is the caller graph for this function:

◆ assign()

"void" pcbnew.string.assign (   self,
args 
)
    assign(string self, string __str) -> string
    assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
    assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
    assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)

Definition at line 277 of file pcbnew.py.

Here is the caller graph for this function:

◆ begin()

"std.basic_string< char >.iterator" pcbnew.string.begin (   self)
begin(string self) -> std::basic_string< char >::iterator

Definition at line 240 of file pcbnew.py.

◆ c_str()

"char const *" pcbnew.string.c_str (   self)
c_str(string self) -> char const *

Definition at line 172 of file pcbnew.py.

◆ capacity()

"std.basic_string< char >.size_type" pcbnew.string.capacity (   self)
capacity(string self) -> std::basic_string< char >::size_type

Definition at line 160 of file pcbnew.py.

◆ copy()

"std.basic_string< char >.size_type" pcbnew.string.copy (   self,
"char *"  __s,
"std::basic_string< char >::size_type"  __n,
"std::basic_string< char >::size_type"  __pos = 0 
)
copy(string self, char * __s, std::basic_string< char >::size_type __n, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type

Definition at line 168 of file pcbnew.py.

◆ empty()

"bool" pcbnew.string.empty (   self)
empty(string self) -> bool

Definition at line 228 of file pcbnew.py.

◆ end()

"std.basic_string< char >.iterator" pcbnew.string.end (   self)
end(string self) -> std::basic_string< char >::iterator

Definition at line 244 of file pcbnew.py.

◆ erase()

"std.basic_string< char >.iterator" pcbnew.string.erase (   self,
args 
)
    erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string
    erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
    erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator

Definition at line 260 of file pcbnew.py.

Here is the caller graph for this function:

◆ find()

"std.basic_string< char >.size_type" pcbnew.string.find (   self,
args 
)
    find(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
    find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
    find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type

Definition at line 176 of file pcbnew.py.

Here is the caller graph for this function:

◆ find_first_not_of()

"std.basic_string< char >.size_type" pcbnew.string.find_first_not_of (   self,
args 
)
    find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
    find_first_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
    find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type

Definition at line 208 of file pcbnew.py.

Here is the caller graph for this function:

◆ find_first_of()

"std.basic_string< char >.size_type" pcbnew.string.find_first_of (   self,
args 
)
    find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
    find_first_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
    find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type

Definition at line 192 of file pcbnew.py.

Here is the caller graph for this function:

◆ find_last_not_of()

"std.basic_string< char >.size_type" pcbnew.string.find_last_not_of (   self,
args 
)
    find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
    find_last_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
    find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type

Definition at line 216 of file pcbnew.py.

Here is the caller graph for this function:

◆ find_last_of()

"std.basic_string< char >.size_type" pcbnew.string.find_last_of (   self,
args 
)
    find_last_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
    find_last_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
    find_last_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type

Definition at line 200 of file pcbnew.py.

Here is the caller graph for this function:

◆ get_allocator()

"std.basic_string< char >.allocator_type" pcbnew.string.get_allocator (   self)
get_allocator(string self) -> std::basic_string< char >::allocator_type

Definition at line 256 of file pcbnew.py.

◆ insert()

"void" pcbnew.string.insert (   self,
args 
)
    insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
    insert(string self, std::basic_string< char >::size_type __pos1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n) -> string
    insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
    insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
    insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
    insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
    insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)

Definition at line 348 of file pcbnew.py.

Here is the caller graph for this function:

◆ iterator()

"swig.SwigPyIterator *" pcbnew.string.iterator (   self)
iterator(string self) -> SwigPyIterator

Definition at line 293 of file pcbnew.py.

Here is the caller graph for this function:

◆ length()

"std.basic_string< char >.size_type" pcbnew.string.length (   self)
length(string self) -> std::basic_string< char >::size_type

Definition at line 152 of file pcbnew.py.

◆ max_size()

"std.basic_string< char >.size_type" pcbnew.string.max_size (   self)
max_size(string self) -> std::basic_string< char >::size_type

Definition at line 156 of file pcbnew.py.

◆ rbegin()

"std.basic_string< char >.reverse_iterator" pcbnew.string.rbegin (   self)
rbegin(string self) -> std::basic_string< char >::reverse_iterator

Definition at line 248 of file pcbnew.py.

◆ rend()

"std.basic_string< char >.reverse_iterator" pcbnew.string.rend (   self)
rend(string self) -> std::basic_string< char >::reverse_iterator

Definition at line 252 of file pcbnew.py.

◆ replace()

"std.basic_string< char > &" pcbnew.string.replace (   self,
args 
)
    replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
    replace(string self, std::basic_string< char >::size_type __pos1, std::basic_string< char >::size_type __n1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n2) -> string
    replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, char const * __s, std::basic_string< char >::size_type __n2) -> string
    replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, std::basic_string< char >::size_type __n2, char __c) -> string
    replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
    replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __s, std::basic_string< char >::size_type __n) -> string
    replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::size_type __n, char __c) -> string
    replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
    replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::const_iterator __k1, std::basic_string< char >::const_iterator __k2) -> string

Definition at line 360 of file pcbnew.py.

Here is the caller graph for this function:

◆ reserve()

"void" pcbnew.string.reserve (   self,
"std::basic_string< char >::size_type"  __res_arg = 0 
)
reserve(string self, std::basic_string< char >::size_type __res_arg=0)

Definition at line 164 of file pcbnew.py.

◆ resize()

"void" pcbnew.string.resize (   self,
args 
)
    resize(string self, std::basic_string< char >::size_type new_size)
    resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)

Definition at line 286 of file pcbnew.py.

Here is the caller graph for this function:

◆ rfind()

"std.basic_string< char >.size_type" pcbnew.string.rfind (   self,
args 
)
    rfind(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
    rfind(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
    rfind(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type

Definition at line 184 of file pcbnew.py.

Here is the caller graph for this function:

◆ size()

"std.basic_string< char >.size_type" pcbnew.string.size (   self)
size(string self) -> std::basic_string< char >::size_type

Definition at line 232 of file pcbnew.py.

◆ substr()

"std.basic_string< char >" pcbnew.string.substr (   self,
args 
)
substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string

Definition at line 224 of file pcbnew.py.

◆ swap()

"void" pcbnew.string.swap (   self,
"string"  v 
)
swap(string self, string v)

Definition at line 236 of file pcbnew.py.

Property Documentation

◆ thisown

pcbnew.string.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 149 of file pcbnew.py.


The documentation for this class was generated from the following file: