Port mouse cursor change over hyperlinks to C

This commit is contained in:
Kovid Goyal
2017-09-13 23:34:00 +05:30
parent 271b623f82
commit 1c1d0a4e91
4 changed files with 18 additions and 2 deletions

View File

@@ -17,3 +17,8 @@ static inline bool
is_word_char(uint32_t ch) {
return uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_L | UC_CATEGORY_MASK_N);
}
static inline bool
is_url_char(uint32_t ch) {
return ch && !uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_C | UC_CATEGORY_MASK_Z);
}