1999-08-16 17:58:30 +00:00
<!-- ##### SECTION Title ##### -->
String Utility Functions
<!-- ##### SECTION Short_Description ##### -->
2000-09-07 16:36:56 +00:00
various string-related functions.
1999-08-16 17:58:30 +00:00
<!-- ##### SECTION Long_Description ##### -->
<para>
2000-09-07 16:36:56 +00:00
This section describes a number of utility functions for creating,
duplicating, and manipulating strings.
1999-08-16 17:58:30 +00:00
</para>
2002-11-21 00:35:15 +00:00
<para>
Note that the functions g_printf(), g_fprintf(), g_sprintf(), g_snprintf(),
g_vprintf(), g_vfprintf(), g_vsprintf() and g_vsnprintf() are declared in
the header <filename>gprintf.h</filename> which is <emphasis>not</emphasis>
included in <filename>glib.h</filename> (otherwise using
<filename>glib.h</filename> would drag in <filename>stdio.h</filename>), so
you'll have to explicitly include <literal><glib/gprintf.h></literal>
in order to use the printf() functions.
</para>
1999-08-16 17:58:30 +00:00
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### FUNCTION g_strdup ##### -->
<para>
2000-09-07 16:36:56 +00:00
Duplicates a string.
2003-05-27 22:25:03 +00:00
If @str is %NULL it returns %NULL.
2000-09-07 16:36:56 +00:00
The returned string should be freed when no longer needed.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@str: the string to duplicate.
2003-07-01 22:15:54 +00:00
@Returns: a newly-allocated copy of @str.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strndup ##### -->
<para>
2000-09-07 16:36:56 +00:00
Duplicates the first @n characters of a string, returning a newly-allocated
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
buffer @n + 1 characters long which will always be nul-terminated.
If @str is less than @n characters long the buffer is padded with nuls.
2003-05-27 22:25:03 +00:00
If @str is %NULL it returns %NULL.
2000-09-07 16:36:56 +00:00
The returned value should be freed when no longer needed.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@str: the string to duplicate part of.
@n: the maximum number of characters to copy from @str.
@Returns: a newly-allocated buffer containing the first @n characters of @str,
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
nul-terminated.
1999-08-16 17:58:30 +00:00
2001-01-05 20:48:43 +00:00
<!-- ##### FUNCTION g_strdupv ##### -->
<para>
</para>
2002-11-28 23:11:58 +00:00
@str_array:
@Returns:
2001-01-05 20:48:43 +00:00
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strnfill ##### -->
<para>
2000-09-07 16:36:56 +00:00
Creates a new string @length characters long filled with @fill_char.
The returned string should be freed when no longer needed.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@length: the length of the new string.
@fill_char: the character to fill the string with.
@Returns: a newly-allocated string filled the @fill_char.
1999-08-16 17:58:30 +00:00
2001-03-26 18:35:34 +00:00
<!-- ##### FUNCTION g_stpcpy ##### -->
<para>
</para>
@dest:
@src:
@Returns:
2001-09-10 15:50:02 +00:00
<!-- ##### FUNCTION g_strstr_len ##### -->
<para>
</para>
@haystack:
@haystack_len:
@needle:
@Returns:
<!-- ##### FUNCTION g_strrstr ##### -->
<para>
</para>
@haystack:
@needle:
@Returns:
<!-- ##### FUNCTION g_strrstr_len ##### -->
<para>
</para>
@haystack:
@haystack_len:
@needle:
@Returns:
Remove references to nonexisting functions
* glib/gmain.c: Remove references to nonexisting functions
g_source_set_callback_closure(), g_source_poll(), g_source_add()
from docs.
* glib/gdir.c (g_dir_open): Typo fix in docs.
* glib/gasyncqueue.c (g_async_queue_lock):
(g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
<link>s in docs.
* glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
* glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
* glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
* glib/tmpl/conversions.sgml: Add GIConv.
* glib/tmpl/main.sgml: Fix references to nonexisting functions
g_main_loop_destroy(), g_source_add(), g_source_connect().
* glib/glib-sections.txt: Add GIConv, g_str_has_prefix, g_str_has_suffix.
* glib/tmpl/linked_lists_single.sgml:
* glib/tmpl/linked_lists_double.sgml: GListAllocator doesn't exist.
* glib/glib-docs.sgml: Declare hash entity.
* glib/tmpl/macros.sgml: Escape # in #ifdef to suppress erroneous links.
* gobject/Makefile.am, gobject/gobject-docs.sgml, gobject/tmpl/*:
* glib/Makefile.am, glib/glib-docs.sgml, glib/tmpl/*: Produce XML,
not SGML.
2002-05-26 22:46:28 +00:00
<!-- ##### FUNCTION g_str_has_prefix ##### -->
<para>
</para>
@str:
@prefix:
@Returns:
<!-- ##### FUNCTION g_str_has_suffix ##### -->
<para>
</para>
@str:
@suffix:
@Returns:
2000-09-06 00:04:49 +00:00
<!-- ##### FUNCTION g_strlcpy ##### -->
1999-08-16 17:58:30 +00:00
<para>
2001-04-16 20:05:25 +00:00
Portability wrapper that calls strlcpy() on systems which have it, and emulates
strlcpy() otherwise. Copies @src to @dest; @dest is guaranteed to be
nul-terminated; @src must be nul-terminated; @dest_size is the buffer size, not
the number of chars to copy. Caveat: strlcpy() is supposedly more secure than
strcpy() or strncpy(), but if you really want to avoid screwups, g_strdup() is
an even better idea.
1999-08-16 17:58:30 +00:00
</para>
2001-04-16 20:05:25 +00:00
@dest: destination buffer
@src: source buffer
@dest_size: length of @dest in bytes
@Returns: length of @src
1999-08-16 17:58:30 +00:00
2000-09-06 00:04:49 +00:00
<!-- ##### FUNCTION g_strlcat ##### -->
1999-08-16 17:58:30 +00:00
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Portability wrapper that calls <function>strlcat()</function> on systems which have it, and emulates it otherwise. Appends nul-terminated @src string to @dest, guaranteeing
2001-04-16 20:05:25 +00:00
nul-termination for @dest. The total size of @dest won't exceed
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
@dest_size. Caveat: this is supposedly a more secure alternative to <function>strcat()</function> or
<function>strncat()</function>, but for real security g_strconcat() is harder to mess up.
1999-08-16 17:58:30 +00:00
</para>
2001-04-16 20:05:25 +00:00
@dest: destination buffer, already containing one nul-terminated string
@src: source buffer
@dest_size: length of @dest buffer in bytes (not length of existing string inside @dest)
@Returns: length of @src plus initial length of string in @dest
1999-08-16 17:58:30 +00:00
2000-09-06 00:04:49 +00:00
<!-- ##### FUNCTION g_strdup_printf ##### -->
1999-08-16 17:58:30 +00:00
<para>
2000-09-07 16:36:56 +00:00
Similar to the standard C <function>sprintf()</function> function
but safer, since it calculates the maximum space required and allocates
memory to hold the result.
The returned string should be freed when no longer needed.
1999-08-16 17:58:30 +00:00
</para>
2000-09-06 00:04:49 +00:00
2000-09-07 16:36:56 +00:00
@format: the standard <function>sprintf()</function> format string.
@Varargs: the parameters to insert into the format string.
@Returns: a newly-allocated string holding the result.
2000-09-06 00:04:49 +00:00
<!-- ##### FUNCTION g_strdup_vprintf ##### -->
1999-08-16 17:58:30 +00:00
<para>
2000-09-07 16:36:56 +00:00
Similar to the standard C <function>vsprintf()</function> function
but safer, since it calculates the maximum space required and allocates
memory to hold the result.
The returned string should be freed when no longer needed.
1999-08-16 17:58:30 +00:00
</para>
2003-06-05 22:54:55 +00:00
<para>
See also g_vasprintf(), which offers the same functionality, but additionally
returns the length of the allocated string.
</para>
2000-09-06 00:04:49 +00:00
2000-09-07 16:36:56 +00:00
@format: the standard <function>sprintf()</function> format string.
@args: the list of parameters to insert into the format string.
@Returns: a newly-allocated string holding the result.
2000-09-06 00:04:49 +00:00
2002-11-21 00:35:15 +00:00
<!-- ##### FUNCTION g_printf ##### -->
1999-08-16 17:58:30 +00:00
<para>
2002-11-21 00:35:15 +00:00
2000-09-07 16:36:56 +00:00
</para>
2002-11-21 00:35:15 +00:00
@format:
@Varargs:
@Returns:
<!-- ##### FUNCTION g_vprintf ##### -->
2000-09-07 16:36:56 +00:00
<para>
2002-11-21 00:35:15 +00:00
2000-09-07 16:36:56 +00:00
</para>
2002-11-21 00:35:15 +00:00
@format:
@args:
@Returns:
<!-- ##### FUNCTION g_fprintf ##### -->
2000-09-07 16:36:56 +00:00
<para>
2002-11-21 00:35:15 +00:00
2001-12-12 22:05:55 +00:00
</para>
2002-11-21 00:35:15 +00:00
@file:
@format:
@Varargs:
@Returns:
<!-- ##### FUNCTION g_vfprintf ##### -->
2001-12-12 22:05:55 +00:00
<para>
2002-11-21 00:35:15 +00:00
1999-08-16 17:58:30 +00:00
</para>
2002-11-21 00:35:15 +00:00
@file:
@format:
@args:
@Returns:
1999-08-16 17:58:30 +00:00
2002-11-21 00:35:15 +00:00
<!-- ##### FUNCTION g_sprintf ##### -->
1999-08-16 17:58:30 +00:00
<para>
2002-11-21 00:35:15 +00:00
2000-09-07 16:36:56 +00:00
</para>
2002-11-21 00:35:15 +00:00
@string:
@format:
@Varargs:
@Returns:
<!-- ##### FUNCTION g_vsprintf ##### -->
2000-09-07 16:36:56 +00:00
<para>
2002-11-21 00:35:15 +00:00
1999-08-16 17:58:30 +00:00
</para>
2002-11-21 00:35:15 +00:00
@string:
@format:
@args:
@Returns:
<!-- ##### FUNCTION g_snprintf ##### -->
2000-09-07 16:36:56 +00:00
<para>
2001-12-12 22:05:55 +00:00
</para>
2002-11-21 00:35:15 +00:00
@string:
@n:
@format:
@Varargs:
@Returns:
<!-- ##### FUNCTION g_vsnprintf ##### -->
2001-12-12 22:05:55 +00:00
<para>
2000-09-07 16:36:56 +00:00
</para>
1999-08-16 17:58:30 +00:00
2002-11-21 00:35:15 +00:00
@string:
@n:
@format:
@args:
@Returns:
1999-08-16 17:58:30 +00:00
2003-07-01 22:15:54 +00:00
<!-- ##### FUNCTION g_vasprintf ##### -->
<para>
</para>
@string:
@format:
@args:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_printf_string_upper_bound ##### -->
<para>
2000-09-07 16:36:56 +00:00
Calculates the maximum space needed to store the output of the
<function>sprintf()</function> function.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@format: the format string. See the <function>printf()</function>
documentation.
@args: the parameters to be inserted into the format string.
@Returns: the maximum space needed to store the formatted string.
1999-08-16 17:58:30 +00:00
2001-08-25 22:29:40 +00:00
<!-- ##### FUNCTION g_ascii_isalnum ##### -->
<para>
Determines whether a character is alphanumeric.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isalnum()</function> function, this only
2001-08-25 22:29:40 +00:00
recognizes standard ASCII letters and ignores the locale, returning
%FALSE for all non-ASCII characters. Also unlike the standard
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII alphanumeric character
<!-- ##### FUNCTION g_ascii_isalpha ##### -->
<para>
Determines whether a character is alphabetic (i.e. a letter).
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isalpha()</function> function, this only
2001-08-25 22:29:40 +00:00
recognizes standard ASCII letters and ignores the locale, returning
%FALSE for all non-ASCII characters. Also unlike the standard
2001-12-20 04:48:36 +00:00
library function, this takes a <type>char</type>, not an <type>int</type>,
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII alphabetic character
<!-- ##### FUNCTION g_ascii_iscntrl ##### -->
<para>
Determines whether a character is a control character.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>iscntrl()</function> function, this only
2001-08-25 22:29:40 +00:00
recognizes standard ASCII control characters and ignores the locale,
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII control character.
<!-- ##### FUNCTION g_ascii_isdigit ##### -->
<para>
Determines whether a character is digit (0-9).
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isdigit()</function> function,
this takes a <type>char</type>, not an <type>int</type>, so don't call it
on %EOF but no need to cast to #guchar before passing a possibly
2001-08-25 22:29:40 +00:00
non-ASCII character in.
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII digit.
<!-- ##### FUNCTION g_ascii_isgraph ##### -->
<para>
Determines whether a character is a printing character and not a space.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isgraph()</function> function,
this only recognizes standard ASCII characters and ignores the locale,
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII printing character other than space.
<!-- ##### FUNCTION g_ascii_islower ##### -->
<para>
Determines whether a character is an ASCII lower case letter.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>islower()</function> function,
this only recognizes standard ASCII letters and ignores the locale,
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to worry about casting to #guchar
before passing a possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII lower case letter
<!-- ##### FUNCTION g_ascii_isprint ##### -->
<para>
Determines whether a character is a printing character.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isprint()</function> function,
this only recognizes standard ASCII characters and ignores the locale,
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII printing character.
<!-- ##### FUNCTION g_ascii_ispunct ##### -->
<para>
Determines whether a character is a punctuation character.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>ispunct()</function> function,
this only recognizes standard ASCII letters and ignores the locale,
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII punctuation character.
<!-- ##### FUNCTION g_ascii_isspace ##### -->
<para>
Determines whether a character is a white-space character.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isspace()</function> function,
this only recognizes standard ASCII white-space and ignores the locale,
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to cast to #guchar before passing a
possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII white-space character
<!-- ##### FUNCTION g_ascii_isupper ##### -->
<para>
Determines whether a character is an ASCII upper case letter.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isupper()</function> function,
this only recognizes standard ASCII letters and ignores the locale,
returning %FALSE for all non-ASCII characters. Also unlike the standard
library function, this takes a <type>char</type>, not an <type>int</type>,
so don't call it on %EOF but no need to worry about casting to #guchar
before passing a possibly non-ASCII character in.
2001-08-25 22:29:40 +00:00
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII upper case letter
<!-- ##### FUNCTION g_ascii_isxdigit ##### -->
<para>
Determines whether a character is a hexadecimal-digit character.
</para>
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Unlike the standard C library <function>isxdigit()</function> function,
this takes a <type>char</type>, not an <type>int</type>, so
don't call it on %EOF but no need to cast to #guchar before passing a
2001-08-25 22:29:40 +00:00
possibly non-ASCII character in.
</para>
2001-09-17 15:26:48 +00:00
@c: any character
2001-08-25 22:29:40 +00:00
@Returns: %TRUE if @c is an ASCII hexadecimal-digit character.
<!-- ##### FUNCTION g_ascii_digit_value ##### -->
<para>
</para>
@c:
@Returns:
<!-- ##### FUNCTION g_ascii_xdigit_value ##### -->
<para>
</para>
@c:
@Returns:
<!-- ##### FUNCTION g_ascii_strcasecmp ##### -->
<para>
</para>
@s1:
@s2:
@Returns:
<!-- ##### FUNCTION g_ascii_strncasecmp ##### -->
<para>
</para>
@s1:
@s2:
@n:
@Returns:
<!-- ##### FUNCTION g_ascii_strup ##### -->
<para>
</para>
2001-09-25 15:55:39 +00:00
@str:
@len:
2001-08-25 22:29:40 +00:00
@Returns:
2001-09-25 15:55:39 +00:00
<!-- # Unused Parameters # -->
@string:
2001-08-25 22:29:40 +00:00
<!-- ##### FUNCTION g_ascii_strdown ##### -->
<para>
</para>
2001-09-25 15:55:39 +00:00
@str:
@len:
2001-08-25 22:29:40 +00:00
@Returns:
2001-09-25 15:55:39 +00:00
<!-- # Unused Parameters # -->
@string:
2001-08-25 22:29:40 +00:00
<!-- ##### FUNCTION g_ascii_tolower ##### -->
<para>
</para>
@c:
@Returns:
<!-- ##### FUNCTION g_ascii_toupper ##### -->
<para>
</para>
@c:
@Returns:
<!-- ##### FUNCTION g_string_ascii_up ##### -->
<para>
</para>
@string:
@Returns:
<!-- ##### FUNCTION g_string_ascii_down ##### -->
<para>
</para>
@string:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strup ##### -->
<para>
</para>
2002-11-28 20:46:29 +00:00
@string:
2000-09-06 00:04:49 +00:00
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strdown ##### -->
<para>
</para>
2002-11-28 20:46:29 +00:00
@string:
2000-09-06 00:04:49 +00:00
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strcasecmp ##### -->
<para>
2001-10-25 14:38:45 +00:00
</para>
1999-08-16 17:58:30 +00:00
2002-11-28 20:46:29 +00:00
@s1:
@s2:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strncasecmp ##### -->
<para>
2001-10-25 14:38:45 +00:00
</para>
1999-08-16 17:58:30 +00:00
2002-11-28 20:46:29 +00:00
@s1:
@s2:
@n:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strreverse ##### -->
<para>
2002-03-11 21:38:18 +00:00
Reverses all of the bytes in a string.
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
For example, <literal>g_strreverse ("abcdef")</literal> will result in "fedcba".
1999-08-16 17:58:30 +00:00
</para>
2002-03-11 21:38:18 +00:00
<para>
Note that g_strreverse() doesn't work on UTF-8 strings containing multibyte characters.
</para>
1999-08-16 17:58:30 +00:00
2000-09-07 16:36:56 +00:00
@string: the string to reverse.
2001-10-13 05:54:10 +00:00
@Returns: the same pointer passed in as @string.
1999-08-16 17:58:30 +00:00
2002-11-28 23:11:58 +00:00
<!-- ##### FUNCTION g_ascii_strtoull ##### -->
<para>
</para>
@nptr:
@endptr:
@base:
@Returns:
2001-10-24 18:00:11 +00:00
<!-- ##### MACRO G_ASCII_DTOSTR_BUF_SIZE ##### -->
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
A good size for a buffer to be passed into g_ascii_dtostr().
2001-10-24 18:00:11 +00:00
It is guaranteed to be enough for all output of that function on systems with
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
64bit IEEE-compatible doubles.
2001-10-24 18:00:11 +00:00
</para>
<para>
The typical usage would be something like:
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
<informalexample><programlisting>
2001-10-24 18:00:11 +00:00
char buf[G_ASCII_DTOSTR_BUF_SIZE];
2002-06-03 17:34:37 +00:00
fprintf (out, "value=%s\n", g_ascii_dtostr (buf, sizeof (buf), value));
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
</programlisting></informalexample>
2001-10-24 18:00:11 +00:00
</para>
<!-- ##### FUNCTION g_ascii_strtod ##### -->
<para>
</para>
@nptr:
@endptr:
@Returns:
<!-- ##### FUNCTION g_ascii_dtostr ##### -->
<para>
</para>
@buffer:
@buf_len:
@d:
@Returns:
<!-- # Unused Parameters # -->
@format:
<!-- ##### FUNCTION g_ascii_formatd ##### -->
<para>
</para>
@buffer:
@buf_len:
@format:
@d:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strtod ##### -->
<para>
2001-10-24 18:00:11 +00:00
1999-08-16 17:58:30 +00:00
</para>
2001-10-24 18:00:11 +00:00
@nptr:
@endptr:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strchug ##### -->
<para>
2000-09-07 16:36:56 +00:00
Removes leading whitespace from a string, by moving the rest of the
characters forward.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@string: a string to remove the leading whitespace from.
@Returns: @string.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strchomp ##### -->
<para>
2000-09-07 16:36:56 +00:00
Removes trailing whitespace from a string.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@string: a string to remove the trailing whitespace from.
@Returns: @string.
1999-08-16 17:58:30 +00:00
<!-- ##### MACRO g_strstrip ##### -->
<para>
2000-09-07 16:36:56 +00:00
Removes leading and trailing whitespace from a string.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@string: a string to remove the leading and trailing whitespace from.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strdelimit ##### -->
<para>
2000-09-07 16:36:56 +00:00
Converts any delimiter characters in @string to @new_delimiter.
Any characters in @string which are found in @delimiters are changed
to the @new_delimiter character.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@string: the string to convert.
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@delimiters: a string containing the current delimiters, or %NULL to use the
2000-09-07 16:36:56 +00:00
standard delimiters defined in #G_STR_DELIMITERS.
@new_delimiter: the new delimiter character.
1999-08-16 17:58:30 +00:00
@Returns:
<!-- ##### MACRO G_STR_DELIMITERS ##### -->
<para>
Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
glib/gthreadpool.c, glib/gtree.c: Documentation fixes.
* glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
glib/tmpl/conversions.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/hash_tables.sgml,
glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
The standard delimiters, used in g_strdelimit().
1999-08-16 17:58:30 +00:00
</para>
<!-- ##### FUNCTION g_strescape ##### -->
<para>
2000-10-31 14:55:23 +00:00
Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\' and
'"' in the string @source by inserting a '\' before
them. Additionally all characters in the range 0x01-0x1F (everything
2003-02-10 23:56:45 +00:00
below SPACE) and in the range 0x7F-0xFF (all non-ASCII chars) are
2000-10-31 14:55:23 +00:00
replaced with a '\' followed by their octal representation. Characters
supplied in @exceptions are not escaped.
2000-09-06 00:04:49 +00:00
</para>
2000-10-31 14:55:23 +00:00
<para>
g_strcompress() does the reverse conversion.
</para>
@source: a string to escape.
@exceptions: a string of characters not to escape in @source.
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@Returns: a newly-allocated copy of @source with certain
2000-10-31 14:55:23 +00:00
characters escaped. See above.
2000-09-06 00:04:49 +00:00
<!-- ##### FUNCTION g_strcompress ##### -->
<para>
2000-10-31 14:55:23 +00:00
Replaces all escaped characters with their one byte equivalent. It
does the reverse conversion of g_strescape().
1999-08-16 17:58:30 +00:00
</para>
2000-10-31 14:55:23 +00:00
@source: a string to compress.
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@Returns: a newly-allocated copy of @source with all escaped
2000-10-31 14:55:23 +00:00
character compressed.
2000-09-06 00:04:49 +00:00
<!-- ##### FUNCTION g_strcanon ##### -->
<para>
2001-04-16 20:05:25 +00:00
For each character in @string, if the character is not in @valid_chars,
replaces the character with @substitutor. Modifies @string in place,
and return @string itself, not a copy. The return value is to allow
2001-12-29 00:09:15 +00:00
nesting such as <literal>g_ascii_strup (g_strcanon (str, "abc", '?'))</literal>.
2000-09-06 00:04:49 +00:00
</para>
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@string: a nul-terminated array of bytes.
@valid_chars: bytes permitted in @string.
@substitutor: replacement character for disallowed bytes.
@Returns: @string.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strsplit ##### -->
<para>
2001-08-24 15:27:23 +00:00
</para>
@string:
@delimiter:
@max_tokens:
@Returns:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strfreev ##### -->
<para>
2003-07-01 22:15:54 +00:00
1999-08-16 17:58:30 +00:00
</para>
2003-07-01 22:15:54 +00:00
@str_array:
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strconcat ##### -->
<para>
2001-04-16 20:05:25 +00:00
Concatenates all of the given strings into one long string. The returned string
should be freed when no longer needed. WARNING: THE VARIABLE ARGUMENT LIST MUST
END WITH %NULL. If you forget the %NULL, g_strconcat() will start appending
random memory junk to your string.
1999-08-16 17:58:30 +00:00
</para>
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@string1: The first string to add, which must not be %NULL.
@Varargs: a %NULL-terminated list of strings to append to the string.
2000-09-07 16:36:56 +00:00
@Returns: a newly-allocated string containing all the string arguments.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strjoin ##### -->
<para>
2000-09-07 16:36:56 +00:00
Joins a number of strings together to form one long string, with the optional
@separator inserted between each of them.
1999-08-16 17:58:30 +00:00
</para>
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@separator: a string to insert between each of the strings, or %NULL.
@Varargs: a %NULL-terminated list of strings to join.
2000-09-07 16:36:56 +00:00
@Returns: a newly-allocated string containing all of the strings joined
together, with @separator between them.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strjoinv ##### -->
<para>
2000-09-07 16:36:56 +00:00
Joins a number of strings together to form one long string, with the optional
@separator inserted between each of them.
1999-08-16 17:58:30 +00:00
</para>
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
2001-10-01 22:54:48 +00:00
@separator: a string to insert between each of the strings, or %NULL.
@str_array: a %NULL-terminated array of strings to join.
2000-09-07 16:36:56 +00:00
@Returns: a newly-allocated string containing all of the strings joined
together, with @separator between them.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strerror ##### -->
<para>
2000-09-07 16:36:56 +00:00
Returns a string corresponding to the given error code, e.g. "no such process".
This function is included since not all platforms support the
<function>strerror()</function> function.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@errnum: the system error number. See the standard C %errno
documentation.
@Returns: a string describing the error code.
If the error code is unknown, it returns "unknown error (<code>)".
The string can only be used until the next call to g_strerror.
1999-08-16 17:58:30 +00:00
<!-- ##### FUNCTION g_strsignal ##### -->
<para>
2000-09-07 16:36:56 +00:00
Returns a string describing the given signal, e.g. "Segmentation fault".
This function is included since not all platforms support the
<function>strsignal()</function> function.
1999-08-16 17:58:30 +00:00
</para>
2000-09-07 16:36:56 +00:00
@signum: the signal number. See the <literal>signal</literal>
documentation.
@Returns: a string describing the signal.
If the signal is unknown, it returns "unknown signal (<signum>)".
The string can only be used until the next call to g_strsignal.
1999-08-16 17:58:30 +00:00