KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
pcbnew.string Class Reference
Inheritance diagram for pcbnew.string:

Public Member Functions

 length (self)
 
 max_size (self)
 
 capacity (self)
 
 reserve (self, __res_arg)
 
 shrink_to_fit (self)
 
 copy (self, __s, __n, __pos=0)
 
 c_str (self)
 
 find (self, *args)
 
 rfind (self, *args)
 
 find_first_of (self, *args)
 
 find_last_of (self, *args)
 
 find_first_not_of (self, *args)
 
 find_last_not_of (self, *args)
 
 substr (self, *args)
 
 empty (self)
 
 size (self)
 
 swap (self, v)
 
 begin (self)
 
 end (self)
 
 rbegin (self)
 
 rend (self)
 
 get_allocator (self)
 
 erase (self, *args)
 
 __init__ (self, *args)
 
 assign (self, *args)
 
 resize (self, *args)
 
 iterator (self)
 
 __iter__ (self)
 
 __nonzero__ (self)
 
 __bool__ (self)
 
 __len__ (self)
 
 __getslice__ (self, i, j)
 
 __setslice__ (self, *args)
 
 __delslice__ (self, i, j)
 
 __delitem__ (self, *args)
 
 __getitem__ (self, *args)
 
 __setitem__ (self, *args)
 
 insert (self, *args)
 
 replace (self, *args)
 
 __iadd__ (self, v)
 
 __add__ (self, v)
 
 __radd__ (self, v)
 
 __str__ (self)
 
 __rlshift__ (self, out)
 
 __eq__ (self, v)
 
 __ne__ (self, v)
 
 __gt__ (self, v)
 
 __lt__ (self, v)
 
 __ge__ (self, v)
 
 __le__ (self, 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 149 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

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 275 of file pcbnew.py.

Member Function Documentation

◆ __add__()

pcbnew.string.__add__ ( self,
v )
__add__(string self, string v) -> string

Definition at line 385 of file pcbnew.py.

◆ __bool__()

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

Definition at line 310 of file pcbnew.py.

◆ __delitem__()

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

Definition at line 333 of file pcbnew.py.

◆ __delslice__()

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

Definition at line 329 of file pcbnew.py.

◆ __eq__()

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

Definition at line 401 of file pcbnew.py.

◆ __ge__()

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

Definition at line 417 of file pcbnew.py.

◆ __getitem__()

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

Definition at line 340 of file pcbnew.py.

◆ __getslice__()

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

Definition at line 318 of file pcbnew.py.

◆ __gt__()

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

Definition at line 409 of file pcbnew.py.

◆ __iadd__()

pcbnew.string.__iadd__ ( self,
v )
__iadd__(string self, string v) -> string

Definition at line 381 of file pcbnew.py.

◆ __iter__()

pcbnew.string.__iter__ ( self)

Definition at line 303 of file pcbnew.py.

◆ __le__()

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

Definition at line 421 of file pcbnew.py.

◆ __len__()

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

Definition at line 314 of file pcbnew.py.

◆ __lt__()

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

Definition at line 413 of file pcbnew.py.

◆ __ne__()

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

Definition at line 405 of file pcbnew.py.

◆ __nonzero__()

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

Definition at line 306 of file pcbnew.py.

◆ __radd__()

pcbnew.string.__radd__ ( self,
v )
__radd__(string self, string v) -> string

Definition at line 389 of file pcbnew.py.

◆ __rlshift__()

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

Definition at line 397 of file pcbnew.py.

◆ __setitem__()

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

Definition at line 347 of file pcbnew.py.

◆ __setslice__()

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 322 of file pcbnew.py.

◆ __str__()

pcbnew.string.__str__ ( self)
__str__(string self) -> string

Definition at line 393 of file pcbnew.py.

◆ assign()

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 284 of file pcbnew.py.

◆ begin()

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

Definition at line 247 of file pcbnew.py.

◆ c_str()

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

Definition at line 179 of file pcbnew.py.

◆ capacity()

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

Definition at line 163 of file pcbnew.py.

◆ copy()

pcbnew.string.copy ( self,
__s,
__n,
__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 175 of file pcbnew.py.

◆ empty()

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

Definition at line 235 of file pcbnew.py.

◆ end()

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

Definition at line 251 of file pcbnew.py.

◆ erase()

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 267 of file pcbnew.py.

◆ find()

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 183 of file pcbnew.py.

◆ find_first_not_of()

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 215 of file pcbnew.py.

◆ find_first_of()

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 199 of file pcbnew.py.

◆ find_last_not_of()

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 223 of file pcbnew.py.

◆ find_last_of()

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 207 of file pcbnew.py.

◆ get_allocator()

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

Definition at line 263 of file pcbnew.py.

◆ insert()

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 355 of file pcbnew.py.

◆ iterator()

pcbnew.string.iterator ( self)
iterator(string self) -> SwigPyIterator

Definition at line 300 of file pcbnew.py.

◆ length()

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

Definition at line 155 of file pcbnew.py.

◆ max_size()

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

Definition at line 159 of file pcbnew.py.

◆ rbegin()

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

Definition at line 255 of file pcbnew.py.

◆ rend()

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

Definition at line 259 of file pcbnew.py.

◆ replace()

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 367 of file pcbnew.py.

◆ reserve()

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

Definition at line 167 of file pcbnew.py.

◆ resize()

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 293 of file pcbnew.py.

◆ rfind()

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 191 of file pcbnew.py.

◆ shrink_to_fit()

pcbnew.string.shrink_to_fit ( self)
shrink_to_fit(string self)

Definition at line 171 of file pcbnew.py.

◆ size()

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

Definition at line 239 of file pcbnew.py.

◆ substr()

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 231 of file pcbnew.py.

◆ swap()

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

Definition at line 243 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 152 of file pcbnew.py.


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