Homec4science

Add phutil_utf8_codepoints(), phutil_utf8_console_strlen()

Authored by epriestley <git@epriestley.com> on Oct 1 2012, 04:31.

Description

Add phutil_utf8_codepoints(), phutil_utf8_console_strlen()

Summary: Reasonably approximate a console-aware display width function for arbitrary utf8 strings so I can make D3568 work correctly.

Test Plan: Unit tests.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1831

Differential Revision: https://secure.phabricator.com/D3569

Details

Committed
epriestley <git@epriestley.com>Oct 1 2012, 04:31
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU71aeced8ab61: Add a method to determine console width
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUcb5e32de9ec2: Add phutil_utf8_codepoints(), phutil_utf8_console_strlen() (authored by epriestley <git@epriestley.com>).Oct 1 2012, 04:31