Liking cljdoc? Tell your friends :D

wcwidth.api


code-pointsclj

(code-points s)

Returns all of the Unicode code points in s, as a sequence of integers.

Returns all of the Unicode code points in s, as a sequence of integers.
raw docstring

codepoint-to-stringclj

(codepoint-to-string code-point)

Converts any Unicode codepoint to a String.

This is useful because Clojure/Java string literals only support UTF-16 escape sequences, which involves manual construction of all supplementary code points.

Converts any Unicode codepoint to a String.

This is useful because Clojure/Java string literals only support UTF-16 escape sequences, which involves manual construction of all supplementary code points.
raw docstring

combining?clj

(combining? code-point)

Is code-point (a character or integer) a combining character?

Is code-point (a character or integer) a combining character?
raw docstring

non-printing?clj

(non-printing? code-point)

Is code-point (a character or integer) a non-printing character?

Is code-point (a character or integer) a non-printing character?
raw docstring

null?clj

(null? code-point)

Is code-point (a character or integer) a null character?

Is code-point (a character or integer) a null character?
raw docstring

wcswidthclj

(wcswidth s)

Returns the number of columns needed to represent String s. If a nonprintable character occurs among these characters, -1 is returned.

Returns the number of columns needed to represent String s. If a nonprintable character occurs among these characters, -1 is returned.
raw docstring

wcswidth2clj

(wcswidth2 s)

Returns the number of columns needed to represent String s, ignoring nonprintable characters (note: this variant is not provided by POSIX, but is arguably more useful on the JVM given how it handles such characters).

Returns the number of columns needed to represent String s, ignoring nonprintable characters (note: this variant is not provided by POSIX, but is arguably more useful on the JVM given how it handles such characters).
raw docstring

wcwidthclj

(wcwidth code-point)

Returns the number of columns needed to represent the code-point. If code-point is a printable character, the value is at least 0. If code-point is a null character, the value is 0. Otherwise, -1 is returned.

Returns the number of columns needed to represent the code-point. If code-point is a printable character, the value is at least 0. If code-point is a null character, the value is 0. Otherwise, -1 is returned.
raw docstring

wide?clj

(wide? code-point)

Is code-point (a character or integer) in the East Asian Wide (W) or East Asian Full-width (F) category as defined in Unicode Technical Report #11 (and subsequent revisions)?

Is code-point (a character or integer) in the East Asian Wide (W) or East Asian Full-width (F) category as defined in Unicode Technical Report #11 (and subsequent revisions)?
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close