2021-10-31 12:48:28 +01:00
|
|
|
#pragma once
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS;
|
|
|
|
|
|
|
|
#define MG_TYPE_UTIL_STRING mg_util_string_get_type()
|
|
|
|
G_DECLARE_FINAL_TYPE (MgUtilString, mg_util_string, MG, UTIL_STRING, GObject)
|
|
|
|
|
|
|
|
MgUtilString *mg_util_string_new ();
|
|
|
|
char *
|
2022-05-05 05:14:41 +02:00
|
|
|
mg_util_string_alloc_string (MgUtilString *self, size_t len);
|
2021-10-31 12:48:28 +01:00
|
|
|
void
|
2022-05-05 05:14:41 +02:00
|
|
|
mg_util_string_copy_substring (MgUtilString *self,
|
2021-10-31 12:48:28 +01:00
|
|
|
const char *origin, char *dest, size_t dest_len, size_t start,
|
|
|
|
size_t len);
|
|
|
|
|
2022-05-05 05:14:41 +02:00
|
|
|
int
|
|
|
|
g_asprintf (char **strp, const char *format, ...);
|
2021-10-31 12:48:28 +01:00
|
|
|
G_END_DECLS
|