Move character width functions to Character class

Authored by mglb on Sep 27 2018, 2:02 AM.

Description

Move character width functions to Character class

Summary:
Replaces direct konsole_wcwidth() calls with Character object property
and the class static function, which internally still use
konsole_wcwidth().

The change also prepares the codebase for a new code for determining
character width. This way the change will barely touch existing code.

CCBUG: 396435

Test Plan:
konsole_wcwidth() is still used, just in one central place. Passed
compilation and CharacterWidthTest should be enough.

Reviewers: Konsole, hindenburg

Reviewed By: Konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D15756

Details

Committed
hindenburgSep 27 2018, 2:46 AM
Reviewer
Konsole
Differential Revision
D15756: Move character width functions to Character class
Parents
R319:3dad0d6209fc: Ignore default null eol in Session::sendTextToTerminal
Branches
Unknown
Tags
Unknown