projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regex: port to C89
[gnulib.git]
/
lib
/
unistr
/
u-strpbrk.h
diff --git
a/lib/unistr/u-strpbrk.h
b/lib/unistr/u-strpbrk.h
index
2ff4618
..
e91ea19
100644
(file)
--- a/
lib/unistr/u-strpbrk.h
+++ b/
lib/unistr/u-strpbrk.h
@@
-1,5
+1,5
@@
/* Search for some characters in UTF-8/UTF-16/UTF-32 string.
/* Search for some characters in UTF-8/UTF-16/UTF-32 string.
- Copyright (C) 1999, 2002, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002, 2006
, 2009-2012
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
@@
-33,13
+33,13
@@
FUNC (const UNIT *str, const UNIT *accept)
for (;;)
{
for (;;)
{
- ucs4_t uc;
- int count = U_STRMBTOUC (&uc, ptr);
- if (count <= 0)
- break;
- if (U_STRCHR (accept, uc))
- return (UNIT *) ptr;
- ptr += count;
+
ucs4_t uc;
+
int count = U_STRMBTOUC (&uc, ptr);
+
if (count <= 0)
+
break;
+
if (U_STRCHR (accept, uc))
+
return (UNIT *) ptr;
+
ptr += count;
}
return NULL;
}
}
return NULL;
}