projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
priv-set: fix comment
[gnulib.git]
/
lib
/
unilbrk
/
ulc-common.c
diff --git
a/lib/unilbrk/ulc-common.c
b/lib/unilbrk/ulc-common.c
index
7bdfa44
..
1ed9c82
100644
(file)
--- a/
lib/unilbrk/ulc-common.c
+++ b/
lib/unilbrk/ulc-common.c
@@
-1,5
+1,5
@@
/* Line breaking auxiliary functions.
/* Line breaking auxiliary functions.
- Copyright (C) 2001-2003, 2006-20
08
Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2006-20
10
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify it
@@
-21,12
+21,12
@@
#include "unilbrk/ulc-common.h"
#include "c-ctype.h"
#include "unilbrk/ulc-common.h"
#include "c-ctype.h"
-#include "
str
eq.h"
+#include "
c-strcase
eq.h"
int
is_utf8_encoding (const char *encoding)
{
int
is_utf8_encoding (const char *encoding)
{
- if (STR
EQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,
0))
+ if (STR
CASEEQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0,
0))
return 1;
return 0;
}
return 1;
return 0;
}
@@
-43,7
+43,7
@@
is_all_ascii (const char *s, size_t n)
unsigned char c = (unsigned char) *s;
if (!(c_isprint (c) || c_isspace (c)))
unsigned char c = (unsigned char) *s;
if (!(c_isprint (c) || c_isspace (c)))
- return 0;
+
return 0;
}
return 1;
}
}
return 1;
}