• Marcel van Lohuizen's avatar
    exp/locale/collate: changed API to allow access to different locales through New(), · a4d08ed5
    Marcel van Lohuizen authored
    instead of variables. Several reasons:
    - Encourage users of the API to minimize the number of creations and reuse Collate objects.
    - Don't rule out the possibility of using initialization code for collators. For some locales
      it will be possible to have very compact representations that can be quickly expanded
      into a proper table on demand.
    Other changes:
    - Change name of root* vars to main*, as the tables are shared between locales.
    - Added Locales() method to get a list of supported locales.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/6498107
    a4d08ed5
Name
Last commit
Last update
..
build Loading commit data...
Makefile Loading commit data...
colelem.go Loading commit data...
colelem_test.go Loading commit data...
collate.go Loading commit data...
collate_test.go Loading commit data...
contract.go Loading commit data...
contract_test.go Loading commit data...
export.go Loading commit data...
export_test.go Loading commit data...
maketables.go Loading commit data...
regtest.go Loading commit data...
table.go Loading commit data...
table_test.go Loading commit data...
tables.go Loading commit data...
trie.go Loading commit data...
trie_test.go Loading commit data...