Fix a typo and change documentation for g_ascii_isdigit and

* glib/tmpl/string_utils.sgml: Fix a typo and change
	documentation for g_ascii_isdigit and g_ascii_isxdigit
	to reflect the fact that the standard isdigit and
	isxdigit are already locale-independent.
This commit is contained in:
Darin Adler 2001-09-17 15:26:48 +00:00
parent 020b44f5ac
commit a96d96a947
2 changed files with 22 additions and 19 deletions

View File

@ -1,3 +1,10 @@
2001-09-17 Darin Adler <darin@bentspoon.com>
* glib/tmpl/string_utils.sgml: Fix a typo and change
documentation for g_ascii_isdigit and g_ascii_isxdigit
to reflect the fact that the standard isdigit and
isxdigit are already locale-independent.
Wed Sep 5 05:24:07 2001 Tim Janik <timj@gtk.org> Wed Sep 5 05:24:07 2001 Tim Janik <timj@gtk.org>
* gobject/tmpl/gboxed.sgml: documented some functions. * gobject/tmpl/gboxed.sgml: documented some functions.

View File

@ -238,7 +238,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII alphanumeric character @Returns: %TRUE if @c is an ASCII alphanumeric character
@ -255,7 +255,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII alphabetic character @Returns: %TRUE if @c is an ASCII alphabetic character
@ -272,7 +272,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII control character. @Returns: %TRUE if @c is an ASCII control character.
@ -281,15 +281,13 @@ non-ASCII character in.
Determines whether a character is digit (0-9). Determines whether a character is digit (0-9).
</para> </para>
<para> <para>
Unlike the standard C library isdigit function, this only Unlike the standard C library isdigit function,
recognizes standard ASCII digits and ignores the locale, returning this takes a char, not an int, so don't call it
%FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a char, not an int, so don't call it
on EOF but no need to cast to guchar before passing a possibly on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII digit. @Returns: %TRUE if @c is an ASCII digit.
@ -306,7 +304,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII printing character other than space. @Returns: %TRUE if @c is an ASCII printing character other than space.
@ -323,7 +321,7 @@ on EOF but no need to worry about casting to guchar before passing
a possibly non-ASCII character in. a possibly non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII lower case letter @Returns: %TRUE if @c is an ASCII lower case letter
@ -340,7 +338,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII printing character. @Returns: %TRUE if @c is an ASCII printing character.
@ -357,7 +355,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII punctuation character. @Returns: %TRUE if @c is an ASCII punctuation character.
@ -374,7 +372,7 @@ on EOF but no need to cast to guchar before passing a possibly
non-ASCII character in. non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII white-space character @Returns: %TRUE if @c is an ASCII white-space character
@ -391,7 +389,7 @@ on EOF but no need to worry about casting to guchar before passing
a possibly non-ASCII character in. a possibly non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII upper case letter @Returns: %TRUE if @c is an ASCII upper case letter
@ -400,15 +398,13 @@ a possibly non-ASCII character in.
Determines whether a character is a hexadecimal-digit character. Determines whether a character is a hexadecimal-digit character.
</para> </para>
<para> <para>
Unlike the standard C library isxdigit function, this only Unlike the standard C library isxdigit function,
recognizes standard ASCII hexadecimal digits and ignores the this takes a char, not an int, so
locale, returning %FALSE for all non-ASCII characters. Also unlike
the standard library function, this takes a char, not an int, so
don't call it on EOF but no need to cast to guchar before passing a don't call it on EOF but no need to cast to guchar before passing a
possibly non-ASCII character in. possibly non-ASCII character in.
</para> </para>
@c: any characted @c: any character
@Returns: %TRUE if @c is an ASCII hexadecimal-digit character. @Returns: %TRUE if @c is an ASCII hexadecimal-digit character.