gtktexttypes.c 548 Bytes
Newer Older
1
#include <config.h>
2
#include "gtktexttypes.h"
3
#include "gtkalias.h"
4

5 6
/* These are used to represent embedded non-character objects
 * 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 14 15 16
{
  return ((*byte & 0xC0) != 0x80);
}

gboolean
17
gtk_text_byte_begins_utf8_char (const gchar *byte)
18
{
19
  return inline_byte_begins_utf8_char (byte);
20
}
21 22 23

#define __GTK_TEXT_TYPES_C__
#include "gtkaliasdef.c"