diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-06-21 16:13:42 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-06-21 16:13:42 +0000 |
commit | 0e6409a158d9dd76a31b9eccf7c4f26c5466d082 (patch) | |
tree | dc120946f7efa23c6c91c64aee2686d2637e3970 /modules/hangul/hangul-x.c | |
parent | 197a2a68c145d3568cd4f0f2fee3d3b55570134f (diff) | |
download | pango-0e6409a158d9dd76a31b9eccf7c4f26c5466d082.tar.gz |
Remove tests for libunicode
Wed Jun 21 12:11:56 2000 Owen Taylor <otaylor@redhat.com>
* configure.in: Remove tests for libunicode
* pango/utils.[ch]: Removed. The functions from here are now in
GLib.
* **.[ch]: Removed use of libunicode and utils.c in favor of
Unicode functions in GLib. Requires latest GLib from CVS.
Diffstat (limited to 'modules/hangul/hangul-x.c')
-rw-r--r-- | modules/hangul/hangul-x.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/modules/hangul/hangul-x.c b/modules/hangul/hangul-x.c index 6265b77b..8df658ed 100644 --- a/modules/hangul/hangul-x.c +++ b/modules/hangul/hangul-x.c @@ -23,8 +23,6 @@ #include "pango.h" #include "pangox.h" -#include "utils.h" -#include <unicode.h> static PangoEngineRange hangul_ranges[] = { @@ -134,7 +132,7 @@ set_glyph (PangoGlyphString *glyphs, typedef void (* RenderSyllableFunc) (PangoFont *font, PangoXSubfont subfont, - GUChar2 *text, int length, + gunichar2 *text, int length, PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset); @@ -171,7 +169,7 @@ typedef void (* RenderSyllableFunc) (PangoFont *font, PangoXSubfont subfont, \ if (n_cho <= 1 && n_jung <= 1 && n_jong <= 1) \ { \ - GUChar2 l, v, t; \ + gunichar2 l, v, t; \ \ if (n_cho > 0) \ l = text[0]; \ @@ -260,7 +258,7 @@ typedef void (* RenderSyllableFunc) (PangoFont *font, PangoXSubfont subfont, static void render_syllable_with_johabs (PangoFont *font, PangoXSubfont subfont, - GUChar2 *text, int length, + gunichar2 *text, int length, PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset) { @@ -302,7 +300,7 @@ JOHAB_COMMON static void render_syllable_with_johab (PangoFont *font, PangoXSubfont subfont, - GUChar2 *text, int length, + gunichar2 *text, int length, PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset) { @@ -312,7 +310,7 @@ JOHAB_COMMON for (i = 0; i < length; i++) { int j; - GUChar2 wc; + gunichar2 wc; wc = text[i]; for (j = 0; (j < 3) && (__jamo_to_johabfont[wc-LBASE][j] != 0); j++) @@ -335,7 +333,7 @@ JOHAB_COMMON static void render_syllable_with_iso10646 (PangoFont *font, PangoXSubfont subfont, - GUChar2 *text, int length, + gunichar2 *text, int length, PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset) { @@ -403,7 +401,7 @@ render_syllable_with_iso10646 (PangoFont *font, PangoXSubfont subfont, static void render_syllable_with_ksc5601 (PangoFont *font, PangoXSubfont subfont, - GUChar2 *text, int length, + gunichar2 *text, int length, PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset) { @@ -588,7 +586,7 @@ hangul_engine_shape (PangoFont *font, const char *ptr; const char *next; int i, n_chars; - GUChar2 jamos[4]; + gunichar2 jamos[4]; int n_jamos = 0; int n_glyphs = 0, cluster_offset = 0; @@ -608,7 +606,7 @@ hangul_engine_shape (PangoFont *font, { PangoGlyph unknown_glyph = pango_x_get_unknown_glyph (font); - n_chars = unicode_strlen (text, length); + n_chars = g_utf8_strlen (text, length); pango_glyph_string_set_size (glyphs, n_chars); for (i=0; i<n_chars; i++) @@ -619,16 +617,18 @@ hangul_engine_shape (PangoFont *font, return; } - n_chars = unicode_strlen (text, length); + n_chars = g_utf8_strlen (text, length); ptr = text; for (i = 0; i < n_chars; i++) { - GUChar4 wc4; - GUChar2 wcs[4], wc; + gunichar wc4; + gunichar2 wcs[4], wc; int n_code = 0; - _pango_utf8_iterate (ptr, &next, &wc4); + wc4 = g_utf8_get_char (ptr); + next = g_utf8_next_char (ptr); + if (wc4 >= SBASE && wc4 < (SBASE + SCOUNT)) { /* decompose the syllable. */ @@ -656,7 +656,7 @@ hangul_engine_shape (PangoFont *font, } else if (wc4 >= 0x1100 && wc4 <= 0x11ff) { - wc = (GUChar2) wc4; + wc = (gunichar2) wc4; if (n_jamos == 0) { |