Skip to content

Commit 3792c10

Browse files
committed
Merge branch 'master' of github.com:emugel/wcwidth
2 parents 0919108 + f76be9d commit 3792c10

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Haxe port of wcwidth()
22

3-
Following is a [Haxe 4.0](https://haxe.org) port of an implementation of `mk_wcwidth()` as provided by Markus Kuhn.
3+
Following is a [Haxe 4.0](https://haxe.org) port of an implementation of `mk_wcwidth()` as provided by Markus Kuhn.
4+
45

56
## What is this used for?
67

@@ -27,10 +28,16 @@ Hopefully wcwidth() comes to the rescue:
2728
At least that's the basic idea.
2829
Read below to discover why it sometimes return `0` or even `-1`.
2930

31+
# Compatibility
32+
33+
For now it should work with targets using **ECS-2** (hxcpp, eval, hashlink, javascript, maybe flash, maybe others) but *not* with neko. For that we are waiting potentially for https://github.com/HaxeFoundation/haxe/pull/6748/ to be merged, maybe in Haxe 4.1. The target checks are not yet in place, feel free to contribute.
34+
35+
# More explanations
36+
3037
Follows a verbatim of original Stack Overflow question where found this (
31-
https://stackoverflow.com/questions/3634627/how-to-know-the-preferred-display-width-in-columns-of-unicode-characters).
38+
https://stackoverflow.com/questions/3634627/how-to-know-the-preferred-display-width-in-columns-of-unicode-characters), primarily so that those goods explanations are available offline in a README.
3239

33-
# How to know the preferred display width (in columns) of Unicode characters?
40+
## How to know the preferred display width (in columns) of Unicode characters?
3441

3542
Sounds like you're looking for something like wcwidth and wcswidth, defined in IEEE Std 1003.1-2001, but removed from ISO C:
3643

0 commit comments

Comments
 (0)