mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-14 14:27:14 +01:00
Add a note about g_strreverse() and UTF-8.
* glib/tmpl/string_utils.sgml: Add a note about g_strreverse() and UTF-8. * glib/gstrfuncs.c (g_strtod): (g_ascii_strtod): (g_ascii_dtostr): (g_ascii_formatd): Doc formatting fixes.
This commit is contained in:
parent
09ac5e2e00
commit
3346808702
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstrfuncs.c (g_strtod):
|
||||||
|
(g_ascii_strtod):
|
||||||
|
(g_ascii_dtostr):
|
||||||
|
(g_ascii_formatd): Doc formatting fixes.
|
||||||
|
|
||||||
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Mar 8 10:58:28 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* ======== Released 2.0.0 ========
|
* ======== Released 2.0.0 ========
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2002-03-11 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/tmpl/string_utils.sgml: Add a note about g_strreverse() and UTF-8.
|
||||||
|
|
||||||
2002-02-21 Matthias Clasen <maclas@gmx.de>
|
2002-02-21 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/Makefile.am (IGNORE_HFILES): Add gdebug.h.
|
* glib/Makefile.am (IGNORE_HFILES): Add gdebug.h.
|
||||||
|
@ -601,9 +601,12 @@ value if @s1 > @s2.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_strreverse ##### -->
|
<!-- ##### FUNCTION g_strreverse ##### -->
|
||||||
<para>
|
<para>
|
||||||
Reverses all of the characters in a string.
|
Reverses all of the bytes in a string.
|
||||||
For example, <literal>g_strreverse ("abcdef")</literal> will result in "fedcba".
|
For example, <literal>g_strreverse ("abcdef")</literal> will result in "fedcba".
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
Note that g_strreverse() doesn't work on UTF-8 strings containing multibyte characters.
|
||||||
|
</para>
|
||||||
|
|
||||||
@string: the string to reverse.
|
@string: the string to reverse.
|
||||||
@Returns: the same pointer passed in as @string.
|
@Returns: the same pointer passed in as @string.
|
||||||
|
@ -257,22 +257,22 @@ g_strconcat (const gchar *string1, ...)
|
|||||||
/**
|
/**
|
||||||
* g_strtod:
|
* g_strtod:
|
||||||
* @nptr: the string to convert to a numeric value.
|
* @nptr: the string to convert to a numeric value.
|
||||||
* @endptr: if non-NULL, it returns the character after
|
* @endptr: if non-%NULL, it returns the character after
|
||||||
* the last character used in the conversion.
|
* the last character used in the conversion.
|
||||||
*
|
*
|
||||||
* Converts a string to a gdouble value.
|
* Converts a string to a #gdouble value.
|
||||||
* It calls the standard strtod() function to handle the conversion, but
|
* It calls the standard strtod() function to handle the conversion, but
|
||||||
* if the string is not completely converted it attempts the conversion
|
* if the string is not completely converted it attempts the conversion
|
||||||
* again with @g_ascii_strtod, and returns the best match.
|
* again with g_ascii_strtod(), and returns the best match.
|
||||||
*
|
*
|
||||||
* This function should seldom be used. The normal situation when reading
|
* This function should seldomly be used. The normal situation when reading
|
||||||
* numbers not for human consumption is to use @g_ascii_strtod(). Only when
|
* numbers not for human consumption is to use g_ascii_strtod(). Only when
|
||||||
* you know that you must expect both locale formated and C formated numbers
|
* you know that you must expect both locale formatted and C formatted numbers
|
||||||
* should you use this. Make sure that you don't pass strings such as comma
|
* should you use this. Make sure that you don't pass strings such as comma
|
||||||
* separated lists of values, since the commas may be interpreted as a decimal
|
* separated lists of values, since the commas may be interpreted as a decimal
|
||||||
* point in some locales, causing unexpected results.
|
* point in some locales, causing unexpected results.
|
||||||
*
|
*
|
||||||
* Return value: the gdouble value.
|
* Return value: the #gdouble value.
|
||||||
**/
|
**/
|
||||||
gdouble
|
gdouble
|
||||||
g_strtod (const gchar *nptr,
|
g_strtod (const gchar *nptr,
|
||||||
@ -310,10 +310,10 @@ g_strtod (const gchar *nptr,
|
|||||||
/**
|
/**
|
||||||
* g_ascii_strtod:
|
* g_ascii_strtod:
|
||||||
* @nptr: the string to convert to a numeric value.
|
* @nptr: the string to convert to a numeric value.
|
||||||
* @endptr: if non-NULL, it returns the character after
|
* @endptr: if non-%NULL, it returns the character after
|
||||||
* the last character used in the conversion.
|
* the last character used in the conversion.
|
||||||
*
|
*
|
||||||
* Converts a string to a gdouble value.
|
* Converts a string to a #gdouble value.
|
||||||
* This function behaves like the standard strtod() function
|
* This function behaves like the standard strtod() function
|
||||||
* does in the C locale. It does this without actually
|
* does in the C locale. It does this without actually
|
||||||
* changing the current locale, since that would not be
|
* changing the current locale, since that would not be
|
||||||
@ -322,20 +322,20 @@ g_strtod (const gchar *nptr,
|
|||||||
* This function is typically used when reading configuration
|
* This function is typically used when reading configuration
|
||||||
* files or other non-user input that should be locale dependent.
|
* files or other non-user input that should be locale dependent.
|
||||||
* To handle input from the user you should normally use the
|
* To handle input from the user you should normally use the
|
||||||
* locale-sensitive system strtod function.
|
* locale-sensitive system strtod() function.
|
||||||
*
|
*
|
||||||
* To convert from a string to double in a locale-insensitive
|
* To convert from a string to #gdouble in a locale-insensitive
|
||||||
* way, use @g_ascii_dtostr.
|
* way, use g_ascii_dtostr().
|
||||||
*
|
*
|
||||||
* If the correct value would cause overflow, plus or minus HUGE_VAL
|
* If the correct value would cause overflow, plus or minus %HUGE_VAL
|
||||||
* is returned (according to the sign of the value), and ERANGE is
|
* is returned (according to the sign of the value), and %ERANGE is
|
||||||
* stored in errno. If the correct value would cause underflow,
|
* stored in %errno. If the correct value would cause underflow,
|
||||||
* zero is returned and ERANGE is stored in errno.
|
* zero is returned and %ERANGE is stored in %errno.
|
||||||
*
|
*
|
||||||
* This function resets errno before calling strtod() so that
|
* This function resets %errno before calling strtod() so that
|
||||||
* you can reliably detect overflow and underflow.
|
* you can reliably detect overflow and underflow.
|
||||||
*
|
*
|
||||||
* Return value: the gdouble value.
|
* Return value: the #gdouble value.
|
||||||
**/
|
**/
|
||||||
gdouble
|
gdouble
|
||||||
g_ascii_strtod (const gchar *nptr,
|
g_ascii_strtod (const gchar *nptr,
|
||||||
@ -467,13 +467,13 @@ g_ascii_strtod (const gchar *nptr,
|
|||||||
* g_ascii_dtostr:
|
* g_ascii_dtostr:
|
||||||
* @buffer: A buffer to place the resulting string in
|
* @buffer: A buffer to place the resulting string in
|
||||||
* @buf_len: The length of the buffer.
|
* @buf_len: The length of the buffer.
|
||||||
* @d: The double to convert
|
* @d: The #gdouble to convert
|
||||||
*
|
*
|
||||||
* Converts a double to a string, using the '.' as
|
* Converts a #gdouble to a string, using the '.' as
|
||||||
* decimal_point.
|
* decimal point.
|
||||||
*
|
*
|
||||||
* This functions generates enough precision that converting
|
* This functions generates enough precision that converting
|
||||||
* the string back using @g_strtod gives the same machine-number
|
* the string back using g_strtod() gives the same machine-number
|
||||||
* (on machines with IEEE compatible 64bit doubles). It is
|
* (on machines with IEEE compatible 64bit doubles). It is
|
||||||
* guaranteed that the size of the resulting string will never
|
* guaranteed that the size of the resulting string will never
|
||||||
* be larger than @G_ASCII_DTOSTR_BUF_SIZE bytes.
|
* be larger than @G_ASCII_DTOSTR_BUF_SIZE bytes.
|
||||||
@ -494,15 +494,15 @@ g_ascii_dtostr (gchar *buffer,
|
|||||||
* @buf_len: The length of the buffer.
|
* @buf_len: The length of the buffer.
|
||||||
* @format: The printf-style format to use for the
|
* @format: The printf-style format to use for the
|
||||||
* code to use for converting.
|
* code to use for converting.
|
||||||
* @d: The double to convert
|
* @d: The #gdouble to convert
|
||||||
*
|
*
|
||||||
* Converts a double to a string, using the '.' as
|
* Converts a #gdouble to a string, using the '.' as
|
||||||
* decimal_point. To format the number you pass in
|
* decimal point. To format the number you pass in
|
||||||
* a printf-style formating string. Allowed conversion
|
* a printf-style formating string. Allowed conversion
|
||||||
* specifiers are eEfFgG.
|
* specifiers are 'e', 'E', 'f', 'F', 'g' and 'G'.
|
||||||
*
|
*
|
||||||
* If you just want to want to serialize the value into a
|
* If you just want to want to serialize the value into a
|
||||||
* string, use @g_ascii_dtostr.
|
* string, use g_ascii_dtostr().
|
||||||
*
|
*
|
||||||
* Return value: The pointer to the buffer with the converted string.
|
* Return value: The pointer to the buffer with the converted string.
|
||||||
**/
|
**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user