]> Pileus Git - ~andy/gtk/blob - gtk/gtktexttypes.c
Treat backup files the same way as hidden files, to be closer to what
[~andy/gtk] / gtk / gtktexttypes.c
1 #include <config.h>
2 #include "gtktexttypes.h"
3 #include "gtkalias.h"
4
5 /* These are used to represent embedded non-character objects
6  * if you return a string representation of a text buffer
7  */
8 const gchar gtk_text_unknown_char_utf8[] = { '\xEF', '\xBF', '\xBC', '\0' };
9
10 static inline gboolean
11 inline_byte_begins_utf8_char (const gchar *byte)
12 {
13   return ((*byte & 0xC0) != 0x80);
14 }
15
16 gboolean
17 gtk_text_byte_begins_utf8_char (const gchar *byte)
18 {
19   return inline_byte_begins_utf8_char (byte);
20 }
21
22 #define __GTK_TEXT_TYPES_C__
23 #include "gtkaliasdef.c"