d4ab2c22ffedd2888a28d9ce7f8879137ecd7f5c
[gnulib.git] / doc / posix-functions / isascii.texi
1 @node isascii
2 @section @code{isascii}
3 @findex isascii
4
5 POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/isascii.html}
6
7 Gnulib module: ---
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
12
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @end itemize
16
17 Note: This function's behaviour depends on the locale, but requires special
18 handling for the multibyte characters that occur in strings in locales with
19 @code{MB_CUR_MAX > 1} (this includes all the common UTF-8 locales).
20 There are two alternative APIs:
21
22 @table @code
23 @item c_isascii
24 This function operates in a locale independent way and returns true only for
25 ASCII characters.  It is provided by the Gnulib module @samp{c-ctype}.
26
27 @item mb_isascii
28 This function operates in a locale dependent way, on multibyte characters.
29 It is provided by the Gnulib module @samp{mbchar}.
30 @end table