repo.or.cz
/
ciopfs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correct erroneous comment regarding realpath availability
[ciopfs.git]
/
unicode-glib.c
blob
2c0f23099b5392fc27a97ecec562f7152dcacf70
1
#include <glib.h>
2
3
static
inline
bool
str_contains_upper
(
const char
*
s
)
4
{
5
while
(*
s
) {
6
if
(
g_unichar_isupper
(
g_utf8_get_char
(
s
)))
7
return true
;
8
s
=
g_utf8_next_char
(
s
);
9
}
10
return false
;
11
}
12
13
static
inline
char
*
str_fold
(
const char
*
s
)
14
{
15
return
g_utf8_casefold
(
s
, -
1
);
16
}