Refactor common code in {upcase,downcase,capitalize}-word functions
commit728e40088d054516c1cb5f5412cdab73ed84861d
authorMichal Nazarewicz <mina86@mina86.com>
Wed, 7 Sep 2016 13:21:26 +0000 (7 15:21 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Mon, 12 Sep 2016 11:25:13 +0000 (12 13:25 +0200)
tree2c4a10657dc0174450d10f35fea6d48d9d4f1475
parent74c5b735212ccd5f335312db693fd4754fddbce1
Refactor common code in {upcase,downcase,capitalize}-word functions

* src/casefiddle.c (operate_on_word): Removed in favour of…
(casify_word) …new function which does what operate_on_word did plus
what all of the common code from *-word functions.
(upcase-word, downcase-word, capitalize-word): Move code common between
those functions (pretty much the whole body of those functions) into
casify_word and use that instead of now deleted operate_on_word.
src/casefiddle.c