(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.
(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.
(combining? code-point)
Is code-point (a character or integer) a combining character?
Is code-point (a character or integer) a combining character?
(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?
(null? code-point)
Is code-point (a character or integer) a null character?
Is code-point (a character or integer) a null character?
(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.
(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).
(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.
(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)?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close