KiCAD pcbnew scripting
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pcbnew.UTF8 Class Reference
Inheritance diagram for pcbnew.UTF8:
Inheritance graph

Public Member Functions

def __init__ (self, args)
def substr (self, args)
def utf8_to_wxstring (self)
def utf8_to_charptr (self)
def uni_forward
def Cast_to_CChar (self)
def GetChars (self)
def __str__ (self)
- Public Member Functions inherited from pcbnew.string
def length (self)
def max_size (self)
def capacity (self)
def reserve
def copy
def c_str (self)
def find (self, args)
def rfind (self, args)
def find_first_of (self, args)
def find_last_of (self, args)
def find_first_not_of (self, args)
def find_last_not_of (self, args)
def substr (self, args)
def empty (self)
def size (self)
def swap (self, v)
def get_allocator (self)
def begin (self)
def end (self)
def rbegin (self)
def rend (self)
def erase (self, args)
def __init__ (self, args)
def assign (self, args)
def resize (self, args)
def iterator (self)
def __iter__ (self)
def __nonzero__ (self)
def __bool__ (self)
def __len__ (self)
def __getslice__ (self, i, j)
def __setslice__ (self, args)
def __delslice__ (self, i, j)
def __delitem__ (self, args)
def __getitem__ (self, args)
def __setitem__ (self, args)
def insert (self, args)
def replace (self, args)
def __iadd__ (self, v)
def __add__ (self, v)
def __radd__ (self, v)
def __str__ (self)
def __rlshift__ (self, out)
def __eq__ (self, v)
def __ne__ (self, v)
def __gt__ (self, v)
def __lt__ (self, v)
def __ge__ (self, v)
def __le__ (self, v)

Public Attributes

- Public Attributes inherited from pcbnew.string

Static Public Attributes

tuple uni_forward = staticmethod(uni_forward)

Detailed Description

Class UTF8 is an 8 bit std::string that is assuredly encoded in UTF8,
and supplies special conversion support to and from wxString, and has
iteration over unicode characters.

I've been careful to supply only conversion facilities and not try and
duplicate wxString() with many member functions. In the end it is to
be a std::string. There are multiple ways to create text into a
std::string without the need of too many member functions:

richio.h's StrPrintf()


Because this class used no virtuals, it should be possible to cast any
std::string into a UTF8 using this kind of cast: ( UTF8 &) without
construction or copying being the effect of the cast. Be sure the
source std::string holds UTF8 encoded text before you do that.

Dick Hollenbeck

C++ includes: utf8.h 

Definition at line 7696 of file

Constructor & Destructor Documentation

def pcbnew.UTF8.__init__ (   self,
__init__(UTF8 self, wxString o) -> UTF8
__init__(UTF8 self, char const * txt) -> UTF8
__init__(UTF8 self, wchar_t const * txt) -> UTF8
__init__(UTF8 self, string o) -> UTF8
__init__(UTF8 self) -> UTF8


Definition at line 7732 of file

Member Function Documentation

def pcbnew.UTF8.__str__ (   self)

Definition at line 7795 of file

def pcbnew.UTF8.Cast_to_CChar (   self)
Cast_to_CChar(UTF8 self) -> char const *

Definition at line 7783 of file

Here is the caller graph for this function:

def pcbnew.UTF8.GetChars (   self)

Definition at line 7790 of file

Here is the caller graph for this function:

def pcbnew.UTF8.substr (   self,
substr(UTF8 self, size_t pos=0, size_t len) -> UTF8
substr(UTF8 self, size_t pos=0) -> UTF8
substr(UTF8 self) -> UTF8

UTF8 UTF8::substr(size_t pos=0,
size_t len=npos) const 

Definition at line 7750 of file

def pcbnew.UTF8.uni_forward (   aSequence,
  aResult = None 
uni_forward(unsigned char const * aSequence, unsigned int * aResult=None) -> int
uni_forward(unsigned char const * aSequence) -> int

Definition at line 7772 of file

def pcbnew.UTF8.utf8_to_charptr (   self)
utf8_to_charptr(UTF8 self) -> char *

Definition at line 7767 of file

def pcbnew.UTF8.utf8_to_wxstring (   self)
utf8_to_wxstring(UTF8 self) -> wxString

Definition at line 7762 of file

Member Data Documentation


Definition at line 7746 of file

tuple pcbnew.UTF8.uni_forward = staticmethod(uni_forward)

Definition at line 7780 of file

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