
Functions | |
| GList * | g_list_copy_deep (GList *list, GCopyFunc func, gpointer user_data) |
| gboolean | g_ptr_array_find_with_equal_func (GPtrArray *haystack, gconstpointer needle, GEqualFunc equal_func, guint *index_) |
| gchar * | g_canonicalize_filename (const gchar *filename, const gchar *relative_to) |
| gchar * | g_base64_encode_fixed (const guchar *data, gsize len) |
| gboolean | slng_g_hash_table_insert (GHashTable *hash_table, gpointer key, gpointer value) |
| gunichar | g_utf8_get_char_validated_fixed (const gchar *p, gssize max_len) |
| gchar* g_base64_encode_fixed | ( | const guchar * | data, |
| gsize | len | ||
| ) |
g_base64_encode: @data: (array length=len) (element-type guint8): the binary data to encode @len: the length of @data
Encode a sequence of binary data into its Base-64 stringified representation.
Returns: (transfer full): a newly allocated, zero-terminated Base-64 encoded string representing @data. The returned string must be freed with g_free().
Since: 2.12
| gchar* g_canonicalize_filename | ( | const gchar * | filename, |
| const gchar * | relative_to | ||
| ) |
g_canonicalize_filename: @filename: (type filename): the name of the file @relative_to: (type filename) (nullable): the relative directory, or NULL to use the current working directory
Gets the canonical file name from @filename. All triple slashes are turned into single slashes, and all .. and .s resolved against @relative_to.
Symlinks are not followed, and the returned path is guaranteed to be absolute.
If @filename is an absolute path, @relative_to is ignored. Otherwise, @relative_to will be prepended to @filename to make it absolute. @relative_to must be an absolute path, or NULL. If @relative_to is NULL, it'll fallback to g_get_current_dir().
This function never fails, and will canonicalize file paths even if they don't exist.
No file system I/O is done.
Returns: (type filename) (transfer full): a newly allocated string with the canonical file path Since: 2.58
| GList* g_list_copy_deep | ( | GList * | list, |
| GCopyFunc | func, | ||
| gpointer | user_data | ||
| ) |
| gboolean g_ptr_array_find_with_equal_func | ( | GPtrArray * | haystack, |
| gconstpointer | needle, | ||
| GEqualFunc | equal_func, | ||
| guint * | index_ | ||
| ) |
| gunichar g_utf8_get_char_validated_fixed | ( | const gchar * | p, |
| gssize | max_len | ||
| ) |
| gboolean slng_g_hash_table_insert | ( | GHashTable * | hash_table, |
| gpointer | key, | ||
| gpointer | value | ||
| ) |