~martanne/ciopfs

ref: v0.4 ciopfs/unicode-glib.c -rw-r--r-- 276 bytes
15058fe4Marc Andre Tanner Set version to 0.4 10 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <glib.h>

static inline bool str_contains_upper(const char *s)
{
	while (*s) {
		if(g_unichar_isupper(g_utf8_get_char(s)))
			return true;
		s = g_utf8_next_char(s);
	}
	return false;
}

static inline char *str_fold(const char *s)
{
	return g_utf8_casefold(s, -1);
}