String

class String(*args, **kwargs)
Constructors:

String()
new(init:str=None) -> GLib.String
new_len(init:str, len:int) -> GLib.String
new_take(init:str=None) -> GLib.String
sized_new(dfl_size:int) -> GLib.String

Constructors

class String
classmethod new(init: str | None = None) String
Parameters:

init

classmethod new_len(init: str, len: int) String
Parameters:
  • init

  • len

classmethod new_take(init: str | None = None) String
Parameters:

init

classmethod sized_new(dfl_size: int) String
Parameters:

dfl_size

Methods

class String
append(val: str) String
Parameters:

val

append_c(c: int) String
Parameters:

c

append_len(val: str, len: int) String
Parameters:
  • val

  • len

append_unichar(wc: str) String
Parameters:

wc

append_uri_escaped(unescaped: str, reserved_chars_allowed: str, allow_utf8: bool) String
Parameters:
  • unescaped

  • reserved_chars_allowed

  • allow_utf8

ascii_down() String
ascii_up() String
assign(rval: str) String
Parameters:

rval

down() String
equal(v2: String) bool
Parameters:

v2

erase(pos: int, len: int) String
Parameters:
  • pos

  • len

free(free_segment: bool) str | None
Parameters:

free_segment

free_to_bytes() Bytes
hash() int
insert(pos: int, val: str) String
Parameters:
  • pos

  • val

insert_c(pos: int, c: int) String
Parameters:
  • pos

  • c

insert_len(pos: int, val: str, len: int) String
Parameters:
  • pos

  • val

  • len

insert_unichar(pos: int, wc: str) String
Parameters:
  • pos

  • wc

overwrite(pos: int, val: str) String
Parameters:
  • pos

  • val

overwrite_len(pos: int, val: str, len: int) String
Parameters:
  • pos

  • val

  • len

prepend(val: str) String
Parameters:

val

prepend_c(c: int) String
Parameters:

c

prepend_len(val: str, len: int) String
Parameters:
  • val

  • len

prepend_unichar(wc: str) String
Parameters:

wc

replace(find: str, replace: str, limit: int) int
Parameters:
  • find

  • replace

  • limit

set_size(len: int) String
Parameters:

len

truncate(len: int) String
Parameters:

len

up() String

Fields

class String
allocated_len
len
str