Method

GLibStringinsert_unichar

Declaration

GString*
g_string_insert_unichar (
  GString* string,
  gssize pos,
  gunichar wc
)

Description

Converts a Unicode character into UTF-8, and insert it into the string at the given position.

Parameters

pos

Type: gssize

The position at which to insert character, or -1 to append at the end of the string.

wc

Type: gunichar

A Unicode character.

Return value

Type: GString

string.

The data is owned by the instance.