diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2016-09-07 16:38:18 +0200 |
---|---|---|
committer | Michal Nazarewicz <mina86@mina86.com> | 2017-04-06 20:54:57 +0200 |
commit | 8e5b909fe6e20858d023f33617785b2f556a0f13 (patch) | |
tree | 689375e973ea7e156d67f4d105b685833e4d65ce /src/buffer.c | |
parent | ec2d002ff663775e453873c38690c68276a93349 (diff) | |
download | emacs-8e5b909fe6e20858d023f33617785b2f556a0f13.tar.gz emacs-8e5b909fe6e20858d023f33617785b2f556a0f13.tar.bz2 emacs-8e5b909fe6e20858d023f33617785b2f556a0f13.zip |
Introduce case_character function
Move single-character casing logic into a separate function so that
it is collected in a single place. This will make future changes to
the logic easier. This commit introduces no functionality changes.
* src/casefiddle.c (struct casing_context, prepare_casing_context): New
sturcture for saving casing context and function to initialise it.
(case_character): New function which cases character base on provided
context.
(do_casify_integer, do_casify_multibyte_string,
do_casify_unibyte_string, casify_object, casify_region): Convert to
use casing_context and case_character.
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions