]> git.eshelyaron.com Git - emacs.git/commit
Add support for title-casing letters (bug#24603)
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 11 Aug 2016 23:38:49 +0000 (01:38 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Thu, 6 Apr 2017 18:54:57 +0000 (20:54 +0200)
commit13d813b1a093e9039a63b11021a8a92c9c5950d1
tree184ce8d5b36320140b2fbe9581370565e49e066b
parent8e5b909fe6e20858d023f33617785b2f556a0f13
Add support for title-casing letters  (bug#24603)

* src/casefiddle.c (struct casing_context, prepare_casing_context): Add
titlecase_char_table member.  It’s set to the ‘titlecase’ Unicode
property table if capitalisation has been requested.
(case_character): Make use of the titlecase_char_table to title-case
initial characters when capitalising.

* test/src/casefiddle-tests.el (casefiddle-tests--characters,
casefiddle-tests-casing): Update test cases which are now passing.
etc/NEWS
src/casefiddle.c
test/src/casefiddle-tests.el