summaryrefslogtreecommitdiff
path: root/glib/gunicollate.c
Commit message (Collapse)AuthorAgeFilesLines
* GLib: Add forgotten includes and build fixesChun-wei Fan2011-10-171-0/+1
| | | | | | | | | | | | | | -gcharset.c, genviron.c, gunicollate.c: Some headers were missed in those files that triggered C4013 warnings/errors (aka. implicit declaration of ... in GCC). Make up for them here. -gwin32.h: Only define g_win32_get_package_installation_directory/ g_win32_get_package_installation_subdirectory as macros (alias of g_win32_get_package_installation_directory_utf8/ g_win32_get_package_installation_subdirectory_utf8) on Win64 (x64) as g_win32_get_package_installation_directory/ g_win32_get_package_installation_subdirectory have seperate existing implmentations for Win32-this is a long-standing problem but was covered- up by G_DISABLE_DEPRECATED, which we are stopping to use as of 2.31.0.
* Add some more individual own header includes where requiredTor Lillqvist2010-09-121-0/+3
|
* More include cleanupsMatthias Clasen2010-09-031-1/+6
|
* glib/: fully remove galias hacksRyan Lortie2010-07-071-5/+0
|
* Handle strfxrm returning -1 a little better. Problem pointed out by TakaoMatthias Clasen2008-06-111-10/+16
| | | | | | | | * glib/gunicollate.c (g_utf8_collate_key): Handle strfxrm returning -1 a little better. Problem pointed out by Takao Fujiwara svn path=/trunk/; revision=7015
* Bug 531403 - g_utf8_collate broken on Mac.Yevgen Muntyan2008-06-021-7/+185
| | | | | | | | | | | | | | | | 2008-06-02 Yevgen Muntyan <muntyan@tamu.edu> Bug 531403 - g_utf8_collate broken on Mac. * glib/gunicollate.c: (g_utf8_collate): use UCCompareTextDefault; (collate_key_to_string), (carbon_collate_key_with_collator), (carbon_collate_key), (carbon_collate_key_for_filename): new functions using Carbon API to get collate key for g_utf8_collate_key() and g_utf8_collate_key_for_filename(); (g_utf8_collate_key), (g_utf8_collate_key_for_filename): use those. svn path=/trunk/; revision=6969
* Consistently use gsize rather than size_t. (#333310, Morten Welinder)Matthias Clasen2006-12-281-5/+5
| | | | | | | | | | | | | | | 2006-12-27 Matthias Clasen <mclasen@redhat.com> * glib/gconvert.[hc]: * glib/gfileutils.c: * glib/giochannel.c: * glib/goption.c: * glib/gspawn.c: * glib/gunicollate.c: * glib/gutils.c: * tests/timeloop-basic.c: Consistently use gsize rather than size_t. (#333310, Morten Welinder)
* Don't modify the current locale. (#389300)Matthias Clasen2006-12-271-2/+0
| | | | | | | 2006-12-27 Matthias Clasen <mclasen@redhat.com> * glib/gunicollate.c (g_utf8_collate_key): Don't modify the current locale. (#389300)
* Forgotten fileMatthias Clasen2006-12-271-7/+14
|
* Workaround for bug in strxfrm() in Microsoft's newer C runtimes. (#343919,Tor Lillqvist2006-06-081-0/+18
| | | | | | | | 2006-06-08 Tor Lillqvist <tml@novell.com> * glib/gunicollate.c (msc_strxfrm_wrapper): Workaround for bug in strxfrm() in Microsoft's newer C runtimes. (#343919, Kazuki Iwamoto)
* Don't read beyond len. (#322520, Christian Persch)Matthias Clasen2005-11-271-5/+5
| | | | | | | 2005-11-27 Matthias Clasen <mclasen@redhat.com> * glib/gunicollate.c (g_utf8_collate_key_for_filename): Don't read beyond len. (#322520, Christian Persch)
* Fix sorting of 0 sequences in filenamesMatthias Clasen2005-10-071-1/+11
|
* New function to calculate collation keys which are more suitable forMatthias Clasen2005-06-081-2/+198
| | | | | | | | | | 2005-06-08 Matthias Clasen <mclasen@redhat.com> * glib/glib.symbols: * glib/gunicode.h: * glib/gunicollate.c (g_utf8_collate_key_for_filename): New function to calculate collation keys which are more suitable for sorting filenames. (#172690, Ole Laursen)
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-141-1/+4
| | | | | | | | | | | | | | | | | 2005-03-13 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in galias.h: * glib/glib.symbols: Group symbols by header and source file. * glib/makegalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * glib/Makefile.am (galiasdef.c): Add a rule to generate this file. * glib/*.c: Include galias.h after the other GLib headers, include galiasdef.c at the bottom.
* Fix last commit.Matthias Clasen2004-12-201-2/+2
|
* Make docs more accurate. (#161683, Marcin Krzyzanowski)Matthias Clasen2004-12-201-2/+2
| | | | | | | 2004-12-20 Matthias Clasen <mclasen@redhat.com> * glib/gunicollate.c (g_utf8_collate): Make docs more accurate. (#161683, Marcin Krzyzanowski)
* Implement the same PLT reduction technique used in GTK+:Matthias Clasen2004-09-161-0/+1
| | | | | | Thu Sep 16 02:03:15 2004 Matthias Clasen <maclas@gmx.de> Implement the same PLT reduction technique used in GTK+:
* Guard against bogus return value from strxfrm(). For instance Microsoft'sTor Lillqvist2004-08-211-0/+8
| | | | | | | | 2004-08-21 Tor Lillqvist <tml@iki.fi> * glib/gunicollate.c (g_utf8_collate_key): Guard against bogus return value from strxfrm(). For instance Microsoft's strxfrm() returns INT_MAX on errors. (#141124)
* Correct source and destination charset parameter order in g_convert()Tor Lillqvist2004-08-191-3/+3
| | | | | | | | 2004-08-19 Tor Lillqvist <tml@iki.fi> * glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct source and destination charset parameter order in g_convert() call. (#150394, possibly also #141124)
* Unicode 4.0 special casing. (#114681)Noah Levitt2003-09-101-4/+1
| | | | | | | | | | | | | | | 2003-09-10 Noah Levitt <nlevitt@columbia.edu> * glib/gunicodeprivate.h: * glib/gunicollate.c: * glib/gunidecomp.c: * glib/guniprop.c: * tests/casemap.txt: * tests/gen-casemap-txt.pl: Unicode 4.0 special casing. (#114681) * glib/gunicodeprivate.h: Use a private header instead of extern function declarations (_g_utf8_normalize_wc, _g_unichar_combining_class).
* Remove some explicit Docbook markup which is no longer necessaryMatthias Clasen2003-07-251-3/+3
| | | | since gtk-doc does the right thing.
* Start of fixes for cross-compilation. Based on patches from Dimi Shahbaz,Owen Taylor2002-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Dec 5 15:24:14 2002 Owen Taylor <otaylor@redhat.com> Start of fixes for cross-compilation. Based on patches from Dimi Shahbaz, Dan Kegel, Johannes Stenzenbach, Amy Lin. (#58786) * configure.in: Don't run the Digital-Unix 4 -std1 check when cross_compiling. * configure.in: Use AC_TRY_COMPILE() rather than AC_TRY_RUN() for inline checks. (Daniel Egger) * configure.in: use AC_CHECK_SIZEOF rather than GLIB_SIZEOF for size_t. Remove unused checks for size of ptrdiff_t/intmax_t. * acglib.m4: Resync GLIB_SIZEOF of to the current AC_CHECK_SIZEOF, which handles cross-compilation. * acglib.m4: Remove no longer needed GLIB_SYSDEFS(), add GLIB_CHECK_VALUE() as a wrapper around the amazing _AC_COMPUTE_INT() autoconf 2.5x internal. * configure.in: Redo the POLL* value checks in a cross-compilation friendly way. Thu Dec 5 15:28:37 2002 Owen Taylor <otaylor@redhat.com> * glib/gtimer.c: Include glibconfig.h early so that we include <windows.h> when needed. * glib/gstrfuncs.c: Fix typo.
* Patch from Sven Neumann to make the include order consistent. (#71704)Owen Taylor2002-12-041-0/+2
| | | | | | | Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com> * glib/*.c: Patch from Sven Neumann to make the include order consistent. (#71704)
* Fix typo from previous commitFrédéric Crozat2002-12-031-1/+1
| | | | | * glib/gunicollate.c: (g_utf8_collate_key): Fix typo from previous commit
* Check for NULL before doing anything.James M. Cape2002-12-031-6/+26
| | | | | | | Tue Dec 3 01:05:00 2002 James M. Cape <jcape@ignore-your.tv> * glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Check for NULL before doing anything.
* glib/gutf8.c, glib/gunibreak.c, glib/gunicollate.c,Matthias Clasen2001-09-241-9/+9
| | | | glib/gunidecomp.c, glib/guniprop.c: Inline doc consistency fixes.
* Add gunicomp.h (Reported by Sven Neumann).Owen Taylor2001-07-111-17/+16
| | | | | | | | | | | Wed Jul 11 11:13:50 2001 Owen Taylor <otaylor@redhat.com> * glib/Makefile.am (libglib_1_3_la_SOURCES): Add gunicomp.h (Reported by Sven Neumann). * glib/guniprop.c (g_utf8_str/updown) glib/gunicollate.c (g_utf8_collate_key): Fix shadowing problems reported by many (D. Adler, S. Neumann, M. Murmane, L. Peter)
* Add length arguments to g_utf8_{strup,strdown,casefold,collate_key}.Owen Taylor2001-07-071-8/+11
| | | | | | | | | | Fri Jul 6 22:34:32 2001 Owen Taylor <otaylor@redhat.com> * glib/gunicode.h glib/gunidecomp.c glib/guniprop.c glib/gunicollate.c: Add length arguments to g_utf8_{strup,strdown,casefold,collate_key}. * glib/gdate.c: Fix for above.
* Use G_N_ELEMENTS rather than a custom macro.Owen Taylor2001-07-021-0/+233
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.