mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #8] [CLOSED] Core: IsDoubleWidth() function to simplify handling of double width Unicode characters #107
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/8
Author: @ismail-yilmaz
Created: 11/18/2019
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
e1a696bCore: IsDoubleWidth() function is added to simplify handling of double-width UNICODE characters.📊 Changes
3 files changed (+28 additions, -0 deletions)
View changed files
📝
uppsrc/Core/CharSet.cpp(+21 -0)📝
uppsrc/Core/CharSet.h(+2 -0)📝
uppsrc/Core/src.tpp/CharSet_en-us.tpp(+5 -0)📄 Description
I propose adding IsDoubleWidth() function to Upp/Core.
It simplifies Eastern-Asian/CJK character handling, and seems to cover more than IsCJKIdeograph().
This code is a "rip-off" from Markus Kuhns wcwidth() implementation.. It is widely used, and doesn't seem to have a problematic license.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.