summaryrefslogtreecommitdiffstats
path: root/gnulib-local
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-08-18 18:48:17 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:55 +0200
commitfa09d20a417e65108adc8a636ed7a3b0e22d54ea (patch)
tree15a86f807ab94c21acdf415e36f15553251ada55 /gnulib-local
parentf1bb8254a1bb99a643669a1ab5615ea1e93e4d13 (diff)
downloadexternal_gettext-fa09d20a417e65108adc8a636ed7a3b0e22d54ea.zip
external_gettext-fa09d20a417e65108adc8a636ed7a3b0e22d54ea.tar.gz
external_gettext-fa09d20a417e65108adc8a636ed7a3b0e22d54ea.tar.bz2
Change comments that confused Paul Eggert.
Diffstat (limited to 'gnulib-local')
-rw-r--r--gnulib-local/lib/c-strstr.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/gnulib-local/lib/c-strstr.h b/gnulib-local/lib/c-strstr.h
index abc96d4..4ce2db2 100644
--- a/gnulib-local/lib/c-strstr.h
+++ b/gnulib-local/lib/c-strstr.h
@@ -16,13 +16,8 @@
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-/* The functions defined in this file assume the "C" locale and a character
- set without diacritics (ASCII-US or EBCDIC-US or something like that).
- Even if the "C" locale on a particular system is an extension of the ASCII
- character set (like on BeOS, where it is UTF-8, or on AmigaOS, where it
- is ISO-8859-1), the functions in this file recognize only the ASCII
- characters. More precisely, one of the string arguments must be an ASCII
- string with additional restrictions. */
+/* The functions defined in this file assume a nearly ASCII compatible
+ character set. */
#ifdef __cplusplus
@@ -39,7 +34,10 @@ extern "C" {
[this restriction is needed because of BIG5, BIG5-HKSCS, GBK, GB18030,
Shift_JIS, JOHAB], and
3. does not consist entirely of decimal digits, or has at least length 4
- [this restricion is needed because of GB18030]. */
+ [this restricion is needed because of GB18030].
+ This function is also safe to be called, even in a multibyte locale, if
+ HAYSTACK and NEEDLE are known to both consist solely of printable ASCII
+ characters excluding '\\' and '~'. */
extern char *c_strstr (const char *haystack, const char *needle);
#ifdef __cplusplus