[go: up one dir, main page]

File: misc.h

package info (click to toggle)
dillo 0.8.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,168 kB
  • ctags: 3,987
  • sloc: ansic: 32,778; sh: 3,401; makefile: 251; perl: 17
file content (22 lines) | stat: -rw-r--r-- 888 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __MISC_H__
#define __MISC_H__
#include <stdlib.h>

gchar *a_Misc_prepend_user_home(const char *file);
gchar *a_Misc_escape_chars(const gchar *str, gchar *esc_set);
gchar *a_Misc_stuff_chars(const gchar *str, const gchar *esc_set);
gchar *a_Misc_stristr(char *src, char *str);
gchar *a_Misc_expand_tabs(const char *str);
gchar *a_Misc_strsep(char **orig, const char *delim);
#define d_strsep a_Misc_strsep
gint *a_Misc_strsplitpos(const gchar *str, const gchar *delim);
gint *a_Misc_strsplitposdup(gint *pos);
const gchar *a_Misc_get_content_type_from_data(void *Data, size_t Size);
gint a_Misc_parse_geometry(gchar *geom, gint *x, gint *y, gint *w, gint *h);
gchar *a_Misc_encode_base64(const gchar *in);

/* Return a NULL-terminated string containing the characters from p1 to p2. */
#define a_Misc_strpdup(s, p1, p2) g_strndup((s) + (p1), (p2) - (p1))

#endif /* __MISC_H__ */