text/collate
Marcel van Lohuizen d95a5f25a9 go.text/language: added tag matching algorithm. This algorithm is not based
on the CLDR algorithm. It incorporates some ideas from other implementations,
but it is designed from scratch.
Note that the IANA registry has been updated so this CL also adds some new
language codes as well as add mappings for deprecated codes. maketables.go
has also been modified to work around a bug that was introduced in the latest
IANA update.

Note that the Match method of the Matcher interface returns an index of
the original Tag along with the Tag. Certain users of Matcher, such as
service like collation, need to associate data with each Tag.

Package collate is updated to use the new Matcher interface.
As the Matcher matches returns the index of the Tag as well, the tables
can be simplified to be an array instead of a map.

R=r, nigeltao, mpvl
CC=golang-dev, markdavis
https://golang.org/cl/13819047
2013-10-07 13:14:45 +02:00
..
build go.text/language: added tag matching algorithm. This algorithm is not based 2013-10-07 13:14:45 +02:00
colltab go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
tools/colcmp go.text/language: renaming of locale package: 2013-09-05 11:16:24 +02:00
Makefile go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
collate.go go.text/language: added tag matching algorithm. This algorithm is not based 2013-10-07 13:14:45 +02:00
collate_test.go go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
export_test.go go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
index.go go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
maketables.go go.text/language: renaming of locale package: 2013-09-05 11:16:24 +02:00
regtest.go go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
sort.go go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
sort_test.go go.text/language: renaming of locale package: 2013-09-05 11:16:24 +02:00
table_test.go go.text/collate: Moved collation from go.exp: 2013-06-06 15:38:15 +02:00
tables.go go.text/language: added tag matching algorithm. This algorithm is not based 2013-10-07 13:14:45 +02:00