summaryrefslogtreecommitdiff
path: root/src/trie.h
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-07-18 03:43:18 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-07-18 03:43:18 +0000
commitcf55403688da83b34f8eb5a7f5b326fd0a7e28ee (patch)
tree5c082fea5d3e099a4949362ff4f8db2c18d1a718 /src/trie.h
parent623ee6d073c540bd02b2b4f4a9abb2ddf7b7637f (diff)
Actually set ALL_LINGUAS so translations get installed. Document the
* configure.in: Actually set ALL_LINGUAS so translations get installed. * README: Document the weirdness that is cursor movement around wide characters. * src/vte.defs: Bind set_color_bold(). * src/debug.c: Suppress warnings when $VTE_DEBUG_FLAGS isn't set. * src/pty.c, src/reaper.c, src/termcap.c, src/trie.c: Provide for debug messages in the test program. * src/interpret.c, src/trie.c: Use libc stdio instead of g_print for printing what might be part of a multibyte sequence because g_print checks for validity. * src/interpret.c, src/trie.c, src/utf8echo.c, src/vte.c: Use gunichar instead of wchar_t in places where a gunichar is expected. Provide a means for converting from wchar_t to gunichar for the sake of X11 calls which want a wchar_t. * src/trie.c: Provide vte_trie_wide_encoding() for finding a giconv target which is hopefully compatible with gunichar. Likewise provide vte_trie_narrow_encoding() to find one compatible with iso-8859-1. * src/vte.c: Fall back to ISO-8859-1 if we can't set things up for the current locale encoding at startup time. Fall back to the current encoding if we can't perform a given dynamic switch.
Diffstat (limited to 'src/trie.h')
-rw-r--r--src/trie.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/trie.h b/src/trie.h
index c4c6428..a5da306 100644
--- a/src/trie.h
+++ b/src/trie.h
@@ -21,8 +21,8 @@
#ident "$Id$"
-#include <wchar.h>
#include <glib.h>
+#include <glib-object.h>
G_BEGIN_DECLS
@@ -48,9 +48,9 @@ void vte_trie_add(struct vte_trie *trie,
* passed-in string can not be an initial substring of one of the strings in
* the trie, then NULL is returned. */
const char *vte_trie_match(struct vte_trie *trie,
- const wchar_t *pattern, size_t length,
+ const gunichar *pattern, size_t length,
const char **res,
- const wchar_t **consumed,
+ const gunichar **consumed,
GQuark *quark,
GValueArray **array);
@@ -60,6 +60,12 @@ void vte_trie_print(struct vte_trie *trie);
/* Precompute internal information to hopefully make traversal faster. */
void vte_trie_precompute(struct vte_trie *trie);
+/* A gunichar-compatible giconv target, if one can be found. */
+const char *vte_trie_wide_encoding(void);
+
+/* A single-byte iso-8859-1 giconv target, if one can be found. */
+const char *vte_trie_narrow_encoding(void);
+
G_END_DECLS
#endif