gtk2/gtk/gtktexttypes.c
Federico Mena Quintero 80581c3011 Fixes #136082 and #135265, patch by Morten Welinder.
2004-03-05  Federico Mena Quintero  <federico@ximian.com>

	Fixes #136082 and #135265, patch by Morten Welinder.

	* configure.in: Use AC_SYS_LARGEFILE.

	* */*.c: #include <config.h>
2004-03-06 03:38:59 +00:00

20 lines
471 B
C

#include <config.h>
#include "gtktexttypes.h"
/* These are used to represent embedded non-character objects
* if you return a string representation of a text buffer
*/
const gchar gtk_text_unknown_char_utf8[] = { '\xEF', '\xBF', '\xBC', '\0' };
static inline gboolean
inline_byte_begins_utf8_char (const gchar *byte)
{
return ((*byte & 0xC0) != 0x80);
}
gboolean
gtk_text_byte_begins_utf8_char (const gchar *byte)
{
return inline_byte_begins_utf8_char (byte);
}