]> Pileus Git - ~andy/gtk/blob - gtk/gtktexttypes.c
New static function to set the background of all windows.
[~andy/gtk] / gtk / gtktexttypes.c
1 #include "gtktexttypes.h"
2
3 /* These are used to represent embedded non-character objects
4  * if you return a string representation of a text buffer
5  */
6 const gchar gtk_text_unknown_char_utf8[] = { '\xEF', '\xBF', '\xBC', '\0' };
7
8 static inline gboolean
9 inline_byte_begins_utf8_char (const gchar *byte)
10 {
11   return ((*byte & 0xC0) != 0x80);
12 }
13
14 gboolean
15 gtk_text_byte_begins_utf8_char (const gchar *byte)
16 {
17   return inline_byte_begins_utf8_char (byte);
18 }