summaryrefslogtreecommitdiff
path: root/src/unicode.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-09-25 10:55:57 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-10-01 13:45:00 +0100
commit249ec4835e07461a36042fb0be79363649135071 (patch)
tree504c418aedf8fa252a040e79d2dbc90cfbb02119 /src/unicode.hh
parent28cfd0bb61f5c60279358a7e58d5b6f68a1255f1 (diff)
Rename get_width to codepoint_width
Diffstat (limited to 'src/unicode.hh')
-rw-r--r--src/unicode.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unicode.hh b/src/unicode.hh
index 12b75002..0b84d9db 100644
--- a/src/unicode.hh
+++ b/src/unicode.hh
@@ -48,7 +48,7 @@ inline bool is_basic_alpha(Codepoint c)
return (c >= 'a' and c <= 'z') or (c >= 'A' and c <= 'Z');
}
-inline size_t get_width(Codepoint c)
+inline size_t codepoint_width(Codepoint c)
{
return wcwidth((wchar_t)c);
}