summaryrefslogtreecommitdiff
path: root/lib/libc/string/strcoll.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* Fix typoBaptiste Daroussin2015-08-091-9/+5
| | | | | | | | | Remove useless tests before free() Suggested by: jilles Notes: svn path=/projects/collation/; revision=286493
* The collate functions within libc have been using version 1 and 1.2 of theBaptiste Daroussin2015-08-071-46/+66
| | | | | | | | | | | | | | | | | | | | | | | | | packed LC_COLLATE binary formats. These were generated with the colldef tool, but the new LC_COLLATE files are going to be generated by the new localedef tool using CLDR POSIX files as input. The BSD-flavored version of localedef identifies the format as "BSD 1.0". Any LC_COLLATE file with a different version will simply not be loaded, and all LC* categories will get set to "C" (aka "POSIX") locale. This work is based off of Nexenta's contribution to Illumos. The integration with xlocale is John Marino's work for Dragonfly. The following commits will enable localedef tool, disable the colldef tool, add generated colldef directory, and finally remove colldef from base. The only difference with Dragonfly are: - a few fixes to build with clang - And identification of the flavor as "BSD 1.0" instead of "Dragonfly 4.4" Obtained from: Dragonfly Notes: svn path=/projects/collation/; revision=286430
* Revert r227812 and r227808 per discussionEitan Adler2011-12-021-6/+6
| | | | | | | | Reviewed by: many Approved by: des Notes: svn path=/head/; revision=228202
* - add check for pointer equality prior to performing the O(n) passEitan Adler2011-11-221-6/+6
| | | | | | | | | | | | - while here change 's' to 's1' in strcoll Submitted by: eadler@ Reviewed by: theraven@ Approved by: brooks@ MFC after: 2 weeks Notes: svn path=/head/; revision=227808
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds aDavid Chisnall2011-11-201-7/+24
| | | | | | | | | | | | | | | load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor) Notes: svn path=/head/; revision=227753
* - ANSIfy function definitionsDaniel Gerzo2009-02-031-2/+1
| | | | | | | | | - use nul when we are looking for a terminating character where appropriate Approved by: imp Notes: svn path=/head/; revision=188080
* rcsid[]->__FBSDIDDavid E. O'Brien2001-11-071-4/+2
| | | | Notes: svn path=/head/; revision=86170
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.David E. O'Brien2001-05-241-2/+5
| | | | | | | Do the same for the non-wcs*/wmem* files while I'm here. Notes: svn path=/head/; revision=77117
* __collate_substitute() do something non-trivial only for German. For everyoneDmitrij Tejblum1999-09-121-3/+10
| | | | | | | | | | | else, it is equivalent to strdup(). So, we will check if the substitution tables are trivial at the load time, and possibly save 2 calls to __collate_substitute() in strcoll(). Still, __collate_substitute() should not exist. Notes: svn path=/head/; revision=51216
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Back out fallback approximation changes, they are not so right to liveAndrey A. Chernov1996-08-131-19/+3
| | | | Notes: svn path=/head/; revision=17583
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-3/+3
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Use better approximation if collate info not available.Andrey A. Chernov1996-06-091-3/+19
| | | | | | | Fix bug: strxfrm+strcmp != strcoll, if collate info not available Notes: svn path=/head/; revision=16255
* If locale not available, fallback to strcasecmp, not to strcmpAndrey A. Chernov1995-04-161-2/+2
| | | | Notes: svn path=/head/; revision=7895
* Copyrights cleanupAndrey A. Chernov1995-02-181-3/+1
| | | | Notes: svn path=/head/; revision=6537
* Add 8bit collate stuffAndrey A. Chernov1995-02-161-26/+53
| | | | | | | Submitted by: alex@elvisti.kiev.ua Notes: svn path=/head/; revision=6509
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+53
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573