mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
Remove unused fish_iswgraph
This commit is contained in:
parent
5c25d3c3b1
commit
52cb42ba3d
1 changed files with 0 additions and 10 deletions
|
@ -595,16 +595,6 @@ pub fn fish_iswalnum(c: char) -> bool {
|
||||||
!fish_reserved_codepoint(c) && !fish_is_pua(c) && c.is_alphanumeric()
|
!fish_reserved_codepoint(c) && !fish_is_pua(c) && c.is_alphanumeric()
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
fn iswgraph(wc: libc::wchar_t) -> libc::c_int; // Technically it's wint_t
|
|
||||||
}
|
|
||||||
|
|
||||||
/// We need this because there are too many implementations that don't return the proper answer for
|
|
||||||
/// some code points. See issue #3050.
|
|
||||||
pub fn fish_iswgraph(c: char) -> bool {
|
|
||||||
!fish_reserved_codepoint(c) && (fish_is_pua(c) || unsafe { iswgraph(c as libc::wchar_t) } != 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn fish_wcswidth(s: &wstr) -> isize {
|
pub fn fish_wcswidth(s: &wstr) -> isize {
|
||||||
fallback::fish_wcswidth(s)
|
fallback::fish_wcswidth(s)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue