mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 10:38:08 +01:00
Doc fixes.
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com> * glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c: Doc fixes.
This commit is contained in:
parent
a5c41a993f
commit
16fc3b22c0
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 10 11:42:58 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
|
||||||
|
Doc fixes.
|
||||||
|
|
||||||
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
Sat Sep 8 17:14:51 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||||
|
@ -763,6 +763,7 @@ g_build_pathv (const gchar *separator,
|
|||||||
* g_build_path:
|
* g_build_path:
|
||||||
* @separator: a string used to separator the elements of the path.
|
* @separator: a string used to separator the elements of the path.
|
||||||
* @first_element: the first element in the path
|
* @first_element: the first element in the path
|
||||||
|
* @Varargs: remaining elements in path
|
||||||
*
|
*
|
||||||
* Create a path from a series of elements using @separator as the
|
* Create a path from a series of elements using @separator as the
|
||||||
* separator between elements. At the boundary between two elements,
|
* separator between elements. At the boundary between two elements,
|
||||||
@ -792,6 +793,7 @@ g_build_path (const gchar *separator,
|
|||||||
/**
|
/**
|
||||||
* g_build_filename:
|
* g_build_filename:
|
||||||
* @first_element: the first element in the path
|
* @first_element: the first element in the path
|
||||||
|
* @Varargs: remaining elements in path
|
||||||
*
|
*
|
||||||
* Create a filename from a series of elements using the correct
|
* Create a filename from a series of elements using the correct
|
||||||
* separator for filenames. This function behaves identically
|
* separator for filenames. This function behaves identically
|
||||||
|
@ -504,7 +504,7 @@ g_poll (GPollFD *fds,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_main_context_ref:
|
* g_main_context_ref:
|
||||||
* @loop: a #GMainContext
|
* @context: a #GMainContext
|
||||||
*
|
*
|
||||||
* Increases the reference count on a #GMainContext object by one.
|
* Increases the reference count on a #GMainContext object by one.
|
||||||
**/
|
**/
|
||||||
@ -569,7 +569,7 @@ g_main_context_unref_and_unlock (GMainContext *context)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_main_context_unref:
|
* g_main_context_unref:
|
||||||
* @loop: a #GMainContext
|
* @context: a #GMainContext
|
||||||
*
|
*
|
||||||
* Decreases the reference count on a #GMainContext object by one. If
|
* Decreases the reference count on a #GMainContext object by one. If
|
||||||
* the result is zero, free the context and free all associated memory.
|
* the result is zero, free the context and free all associated memory.
|
||||||
|
@ -370,7 +370,7 @@ g_string_truncate (GString *fstring,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_string_set_size:
|
* g_string_set_size:
|
||||||
* @fstring: a #GString
|
* @string: a #GString
|
||||||
* @len: the new length
|
* @len: the new length
|
||||||
*
|
*
|
||||||
* Sets the length of a #GString. If the length is less than
|
* Sets the length of a #GString. If the length is less than
|
||||||
@ -382,20 +382,20 @@ g_string_truncate (GString *fstring,
|
|||||||
* Return value: @fstring
|
* Return value: @fstring
|
||||||
**/
|
**/
|
||||||
GString*
|
GString*
|
||||||
g_string_set_size (GString *fstring,
|
g_string_set_size (GString *string,
|
||||||
gsize len)
|
gsize len)
|
||||||
{
|
{
|
||||||
GRealString *string = (GRealString *) fstring;
|
GRealString *rstring = (GRealString *) string;
|
||||||
|
|
||||||
g_return_val_if_fail (string != NULL, NULL);
|
g_return_val_if_fail (string != NULL, NULL);
|
||||||
|
|
||||||
if (len >= string->allocated_len)
|
if (len >= rstring->allocated_len)
|
||||||
g_string_maybe_expand (string, len - fstring->len);
|
g_string_maybe_expand (rstring, len - string->len);
|
||||||
|
|
||||||
string->len = len;
|
rstring->len = len;
|
||||||
string->str[len] = 0;
|
rstring->str[len] = 0;
|
||||||
|
|
||||||
return fstring;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
GString*
|
GString*
|
||||||
|
20
glib/gutf8.c
20
glib/gutf8.c
@ -501,7 +501,7 @@ g_unichar_to_utf8 (gunichar c,
|
|||||||
/**
|
/**
|
||||||
* g_utf8_strchr:
|
* g_utf8_strchr:
|
||||||
* @p: a nul-terminated utf-8 string
|
* @p: a nul-terminated utf-8 string
|
||||||
* @p_len: the maximum length of p
|
* @len: the maximum length of p
|
||||||
* @c: a iso-10646 character
|
* @c: a iso-10646 character
|
||||||
*
|
*
|
||||||
* Find the leftmost occurence of the given iso-10646 character
|
* Find the leftmost occurence of the given iso-10646 character
|
||||||
@ -513,22 +513,22 @@ g_unichar_to_utf8 (gunichar c,
|
|||||||
**/
|
**/
|
||||||
gchar *
|
gchar *
|
||||||
g_utf8_strchr (const char *p,
|
g_utf8_strchr (const char *p,
|
||||||
gssize p_len,
|
gssize len,
|
||||||
gunichar c)
|
gunichar c)
|
||||||
{
|
{
|
||||||
gchar ch[10];
|
gchar ch[10];
|
||||||
|
|
||||||
gint len = g_unichar_to_utf8 (c, ch);
|
gint charlen = g_unichar_to_utf8 (c, ch);
|
||||||
ch[len] = '\0';
|
ch[charlen] = '\0';
|
||||||
|
|
||||||
return g_strstr_len (p, p_len, ch);
|
return g_strstr_len (p, len, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_utf8_strrchr:
|
* g_utf8_strrchr:
|
||||||
* @p: a nul-terminated utf-8 string
|
* @p: a nul-terminated utf-8 string
|
||||||
* @p_len: the maximum length of p
|
* @len: the maximum length of p
|
||||||
* @c: a iso-10646 character/
|
* @c: a iso-10646 character/
|
||||||
*
|
*
|
||||||
* Find the rightmost occurence of the given iso-10646 character
|
* Find the rightmost occurence of the given iso-10646 character
|
||||||
@ -540,15 +540,15 @@ g_utf8_strchr (const char *p,
|
|||||||
**/
|
**/
|
||||||
gchar *
|
gchar *
|
||||||
g_utf8_strrchr (const char *p,
|
g_utf8_strrchr (const char *p,
|
||||||
gssize p_len,
|
gssize len,
|
||||||
gunichar c)
|
gunichar c)
|
||||||
{
|
{
|
||||||
gchar ch[10];
|
gchar ch[10];
|
||||||
|
|
||||||
gint len = g_unichar_to_utf8 (c, ch);
|
gint charlen = g_unichar_to_utf8 (c, ch);
|
||||||
ch[len] = '\0';
|
ch[charlen] = '\0';
|
||||||
|
|
||||||
return g_strrstr_len (p, p_len, ch);
|
return g_strrstr_len (p, len, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user