summaryrefslogtreecommitdiff
path: root/lib/localeinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* localeinfo: ->simple would be wrong for LC_ALL=CJim Meyering2019-12-301-1/+1
| | | | | | | | | | That would lead to using unnecessary and expensive code paths in dfa.c. * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic error that would have made grep many times slower in the C locale. With this change, and a file created like this: yes 00 | head -10000000 > in Running grep as follows becomes more than 40 times faster: LC_ALL=C grep -Fw 0 in
* localeinfo: record whether locale is simplePaul Eggert2019-12-161-3/+41
| | | | | | | | * lib/localeinfo.c (using_simple_locale): New function, copied here from lib/dfa.c but with a change: it uses strcoll for its heuristic, instead of using setlocale. This lets it be thread-safe. * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* localeinfo: case_folded_counterparts and WEOFPaul Eggert2017-01-151-2/+2
| | | | | | | * NEWS: Document this. * lib/localeinfo.c (case_folded_counterparts): First arg is now wint_t, not wchar_t. This generalizes the function to also work on WEOF, where it returns 0.
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* dfa: new module, importing grep's DFA matcherJim Meyering2016-09-091-0/+113
Since grep's DFA matcher is now being used by two gnulib-enabled projects, grep and sed, it makes sense to version-control its sources and unit tests in one place: here. * modules/dfa: New module. * modules/dfa-tests: New file. * lib/dfa.c: New file, from grep. * lib/dfa.h: Likewise. * lib/localeinfo.c: Likewise. * lib/localeinfo.h: Likewise. * tests/dfa-match-aux.c: Likewise. * tests/dfa-invalid-char-class.sh: Likewise. * tests/dfa-match.sh: Likewise, with minor changes. * MODULES.html.sh (Misc): Add "dfa" to this list.