mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* glib/gfileutils.[ch]: Add g_build_path(),
|
||||
|
@ -763,6 +763,7 @@ g_build_pathv (const gchar *separator,
|
||||
* g_build_path:
|
||||
* @separator: a string used to separator the elements of 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
|
||||
* separator between elements. At the boundary between two elements,
|
||||
@ -792,6 +793,7 @@ g_build_path (const gchar *separator,
|
||||
/**
|
||||
* g_build_filename:
|
||||
* @first_element: the first element in the path
|
||||
* @Varargs: remaining elements in path
|
||||
*
|
||||
* Create a filename from a series of elements using the correct
|
||||
* separator for filenames. This function behaves identically
|
||||
|
@ -504,7 +504,7 @@ g_poll (GPollFD *fds,
|
||||
|
||||
/**
|
||||
* g_main_context_ref:
|
||||
* @loop: a #GMainContext
|
||||
* @context: a #GMainContext
|
||||
*
|
||||
* 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:
|
||||
* @loop: a #GMainContext
|
||||
* @context: a #GMainContext
|
||||
*
|
||||
* Decreases the reference count on a #GMainContext object by one. If
|
||||
* 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:
|
||||
* @fstring: a #GString
|
||||
* @string: a #GString
|
||||
* @len: the new length
|
||||
*
|
||||
* Sets the length of a #GString. If the length is less than
|
||||
@ -382,20 +382,20 @@ g_string_truncate (GString *fstring,
|
||||
* Return value: @fstring
|
||||
**/
|
||||
GString*
|
||||
g_string_set_size (GString *fstring,
|
||||
g_string_set_size (GString *string,
|
||||
gsize len)
|
||||
{
|
||||
GRealString *string = (GRealString *) fstring;
|
||||
GRealString *rstring = (GRealString *) string;
|
||||
|
||||
g_return_val_if_fail (string != NULL, NULL);
|
||||
|
||||
if (len >= string->allocated_len)
|
||||
g_string_maybe_expand (string, len - fstring->len);
|
||||
if (len >= rstring->allocated_len)
|
||||
g_string_maybe_expand (rstring, len - string->len);
|
||||
|
||||
string->len = len;
|
||||
string->str[len] = 0;
|
||||
rstring->len = len;
|
||||
rstring->str[len] = 0;
|
||||
|
||||
return fstring;
|
||||
return string;
|
||||
}
|
||||
|
||||
GString*
|
||||
|
20
glib/gutf8.c
20
glib/gutf8.c
@ -501,7 +501,7 @@ g_unichar_to_utf8 (gunichar c,
|
||||
/**
|
||||
* g_utf8_strchr:
|
||||
* @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
|
||||
*
|
||||
* Find the leftmost occurence of the given iso-10646 character
|
||||
@ -513,22 +513,22 @@ g_unichar_to_utf8 (gunichar c,
|
||||
**/
|
||||
gchar *
|
||||
g_utf8_strchr (const char *p,
|
||||
gssize p_len,
|
||||
gssize len,
|
||||
gunichar c)
|
||||
{
|
||||
gchar ch[10];
|
||||
|
||||
gint len = g_unichar_to_utf8 (c, ch);
|
||||
ch[len] = '\0';
|
||||
gint charlen = g_unichar_to_utf8 (c, ch);
|
||||
ch[charlen] = '\0';
|
||||
|
||||
return g_strstr_len (p, p_len, ch);
|
||||
return g_strstr_len (p, len, ch);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* g_utf8_strrchr:
|
||||
* @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/
|
||||
*
|
||||
* Find the rightmost occurence of the given iso-10646 character
|
||||
@ -540,15 +540,15 @@ g_utf8_strchr (const char *p,
|
||||
**/
|
||||
gchar *
|
||||
g_utf8_strrchr (const char *p,
|
||||
gssize p_len,
|
||||
gssize len,
|
||||
gunichar c)
|
||||
{
|
||||
gchar ch[10];
|
||||
|
||||
gint len = g_unichar_to_utf8 (c, ch);
|
||||
ch[len] = '\0';
|
||||
gint charlen = g_unichar_to_utf8 (c, ch);
|
||||
ch[charlen] = '\0';
|
||||
|
||||
return g_strrstr_len (p, p_len, ch);
|
||||
return g_strrstr_len (p, len, ch);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user