Made g_utf8_find_prev_char able to return the first character of a string.

2001-08-01  Christopher James Lahey  <clahey@ximian.com>

	* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
	able to return the first character of a string.
This commit is contained in:
Christopher James Lahey 2001-08-03 05:52:28 +00:00 committed by Chris Lahey
parent 57c5a11d7b
commit 149a0fb2bd
9 changed files with 41 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -1,3 +1,8 @@
2001-08-01 Christopher James Lahey <clahey@ximian.com>
* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.
2001-07-31 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.h: Committed this file, which is where

View File

@ -129,7 +129,7 @@ gchar *
g_utf8_find_prev_char (const char *str,
const char *p)
{
for (--p; p > str; --p)
for (--p; p >= str; --p)
{
if ((*p & 0xc0) != 0x80)
return (gchar *)p;