Use G_N_ELEMENTS rather than a custom macro.
authorOwen Taylor <otaylor@redhat.com>
Mon, 2 Jul 2001 00:49:21 +0000 (00:49 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 2 Jul 2001 00:49:21 +0000 (00:49 +0000)
commit4f96a13cba0fc1d445c76d30a7cb90b2971de06a
tree815b4a733bf96b7da6d4dd217cff264b6be31b60
parentb37e7bbb53afd0f8d3386065aff0d74195737fd1
Use G_N_ELEMENTS rather than a custom macro.

Sun Jul  1 20:16:25 2001  Owen Taylor  <otaylor@redhat.com>

* glib/guniprop.c (g_unichar_totitle): Use G_N_ELEMENTS
rather than a custom macro.

* glib/gen-unicode-tables.pl: Adapt to changes in table
formats for Unicode 3.1

* glib/gunicode.h glib/guniprop.c glib/gunichartables.h
  glib/gen-unicode-tables.pl: Add case conversion functions
        g_utf8_casefold, g_utf8_strup, g_utf8_strdown.

* tests/unicode-caseconv.c tests/gen-casefold-txt.pl
  tests/gen-casemap-txt.pl tests/casefold.txt
  tests/casemap.txt: Test cases for case conversion.

* glib/gunicode.h glib/gunidecomp.[ch] glib/gunicomp.h
  glib/gen-unicode-tables.pl: Add function to do Unicode
        normalization g_utf8_normalize().

* tests/unicode-normalize.c: Test program for case conversion.

* glib/gunicode.h glib/gunicollate.c: Add collation functions
g_utf8_collate, g_utf8_collate_key.

* test/unicode-collate.c: Test program for collation.

* glib/gdate.c (g_date_fill_parse_tokens): Fix uninitialized
variable.

* glib/gdate.c (g_date_strftime) docs/Changes-2.0.txt:
Make work with UTF-8 even if the locale isn't UTF-8 based.
Still somewhat of broken, if the format string contains
characters not representable in the current locale, will warn
and not work.

* glib/gdate.c: Use UTF-8 normalization and casefolding.
32 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/Changes-2.0.txt
docs/reference/glib/tmpl/glib-unused.sgml
docs/reference/glib/tmpl/main.sgml
glib/Makefile.am
glib/gdate.c
glib/gen-unicode-tables.pl
glib/giochannel.c
glib/gunibreak.h
glib/gunichartables.h
glib/gunicode.h
glib/gunicollate.c [new file with mode: 0644]
glib/gunicomp.h [new file with mode: 0644]
glib/gunidecomp.c
glib/gunidecomp.h
glib/guniprop.c
tests/.cvsignore
tests/Makefile.am
tests/casefold.txt [new file with mode: 0644]
tests/casemap.txt [new file with mode: 0644]
tests/gen-casefold-txt.pl [new file with mode: 0755]
tests/gen-casemap-txt.pl [new file with mode: 0755]
tests/unicode-caseconv.c [new file with mode: 0644]
tests/unicode-collate.c [new file with mode: 0644]
tests/unicode-normalize.c [new file with mode: 0644]