gtktexttypes.c 445 Bytes
Newer Older
1 2
#include "gtktexttypes.h"

3 4
/* These are used to represent embedded non-character objects
 * if you return a string representation of a text buffer
5
 */
Havoc Pennington's avatar
Havoc Pennington committed
6
const gchar gtk_text_unknown_char_utf8[] = { 0xEF, 0xBF, 0xBC, '\0' };
7 8

static inline gboolean
9
inline_byte_begins_utf8_char (const gchar *byte)
10 11 12 13 14
{
  return ((*byte & 0xC0) != 0x80);
}

gboolean
15
gtk_text_byte_begins_utf8_char (const gchar *byte)
16
{
17
  return inline_byte_begins_utf8_char (byte);
18
}