[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get isblank?
From: |
Bruno Haible |
Subject: |
Re: How to get isblank? |
Date: |
Sun, 18 Oct 2009 21:53:32 +0200 |
User-agent: |
KMail/1.9.9 |
Here comes the documentation for isblank and the other ctype.h functions.
2009-10-18 Reuben Thomas <address@hidden>
Bruno Haible <address@hidden>
* doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
* doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
* doc/posix-functions/isalpha.texi: Likewise.
* doc/posix-functions/isblank.texi: Likewise.
* doc/posix-functions/iscntrl.texi: Likewise.
* doc/posix-functions/isdigit.texi: Likewise.
* doc/posix-functions/isgraph.texi: Likewise.
* doc/posix-functions/islower.texi: Likewise.
* doc/posix-functions/isprint.texi: Likewise.
* doc/posix-functions/ispunct.texi: Likewise.
* doc/posix-functions/isspace.texi: Likewise.
* doc/posix-functions/isupper.texi: Likewise.
* doc/posix-functions/isxdigit.texi: Likewise.
--- doc/posix-functions/isalnum.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isalnum.texi 2009-10-18 21:36:22.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isalnum
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswalnum
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isalnum
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_alnum
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-alnum}.
address@hidden table
--- doc/posix-functions/isalpha.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isalpha.texi 2009-10-18 21:39:19.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isalpha
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswalpha
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isalpha
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_alpha
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-alpha}.
address@hidden table
--- doc/posix-functions/isascii.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isascii.texi 2009-10-18 21:45:06.000000000 +0200
@@ -13,3 +13,18 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but requires special
+handling for the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are two alternative APIs:
+
address@hidden @code
address@hidden c_isascii
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden mb_isascii
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
address@hidden table
--- doc/posix-functions/isblank.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isblank.texi 2009-10-18 21:45:08.000000000 +0200
@@ -16,3 +16,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isblank
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswblank
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isblank
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_blank
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-blank}.
address@hidden table
--- doc/posix-functions/iscntrl.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/iscntrl.texi 2009-10-18 21:40:00.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_iscntrl
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswcntrl
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_iscntrl
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_cntrl
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-cntrl}.
address@hidden table
--- doc/posix-functions/isdigit.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isdigit.texi 2009-10-18 21:40:12.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isdigit
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswdigit
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isdigit
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_digit
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-digit}.
address@hidden table
--- doc/posix-functions/isgraph.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isgraph.texi 2009-10-18 21:40:20.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isgraph
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswgraph
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isgraph
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_graph
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-graph}.
address@hidden table
--- doc/posix-functions/islower.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/islower.texi 2009-10-18 21:40:33.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_islower
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswlower
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_islower
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_lower
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-lower}.
address@hidden table
--- doc/posix-functions/isprint.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isprint.texi 2009-10-18 21:40:42.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isprint
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswprint
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isprint
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_print
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-print}.
address@hidden table
--- doc/posix-functions/ispunct.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/ispunct.texi 2009-10-18 21:40:53.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_ispunct
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswpunct
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_ispunct
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_punct
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-punct}.
address@hidden table
--- doc/posix-functions/isspace.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isspace.texi 2009-10-18 21:41:06.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isspace
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswspace
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isspace
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_space
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-space}.
address@hidden table
--- doc/posix-functions/isupper.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isupper.texi 2009-10-18 21:41:14.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isupper
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswupper
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isupper
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_upper
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-upper}.
address@hidden table
--- doc/posix-functions/isxdigit.texi.orig 2009-10-18 21:46:04.000000000
+0200
+++ doc/posix-functions/isxdigit.texi 2009-10-18 21:41:26.000000000 +0200
@@ -13,3 +13,28 @@
Portability problems not fixed by Gnulib:
@itemize
@end itemize
+
+Note: This function's behaviour depends on the locale, but does not support
+the multibyte characters that occur in strings in locales with
address@hidden > 1} (this includes all the common UTF-8 locales).
+There are four alternative APIs:
+
address@hidden @code
address@hidden c_isxdigit
+This function operates in a locale independent way and returns true only for
+ASCII characters. It is provided by the Gnulib module @samp{c-ctype}.
+
address@hidden iswxdigit
+This function operates in a locale dependent way, on wide characters. In
+order to use it, you first have to convert from multibyte to wide characters,
+using the @code{mbrtowc} function. It is provided by the Gnulib module
address@hidden
+
address@hidden mb_isxdigit
+This function operates in a locale dependent way, on multibyte characters.
+It is provided by the Gnulib module @samp{mbchar}.
+
address@hidden uc_is_xdigit
+This function operates in a locale independent way, on Unicode characters.
+It is provided by the Gnulib module @samp{unictype/ctype-xdigit}.
address@hidden table
- How to get isblank?, Reuben Thomas, 2009/10/06
- Re: How to get isblank?, Bruno Haible, 2009/10/06
- Re: How to get isblank?, Reuben Thomas, 2009/10/06
- Re: How to get isblank?, Eric Blake, 2009/10/06
- Re: How to get isblank?, Reuben Thomas, 2009/10/15
- Re: How to get isblank?, Bruno Haible, 2009/10/18
- new module ctype, Bruno Haible, 2009/10/18
- Re: new module ctype, Eric Blake, 2009/10/18
- Re: ctype functions with char argument, Bruno Haible, 2009/10/18
- new module isblank, Bruno Haible, 2009/10/18
- Re: How to get isblank?,
Bruno Haible <=
- Re: How to get isblank?, Reuben Thomas, 2009/10/18