Liking cljdoc? Tell your friends :D

net.eighttrigrams.cljs-text-editor.helpers


calc-restclj/s

(calc-rest {value :value selection-end :selection-end})
source

cursor-position-in-lineclj/s

(cursor-position-in-line value position)

Returns [position-within-current-line position-of-current-line previous-line-exists?]

Returns [position-within-current-line
position-of-current-line
previous-line-exists?]
sourceraw docstring

flipclj/s

(flip {selection-start :selection-start selection-end :selection-end :as state})
source

index-of-substr-or-endclj/s

(index-of-substr-or-end s pattern)

Returns the index of pattern in s - if it has been found the length of s - if pattern could not be found in s

Returns 
the index of `pattern` in `s` - if it has been found
the length of s               - if `pattern` could not be found in `s`
sourceraw docstring

leftwardsclj/s

(leftwards fun)
source

next-line-positionclj/s

(next-line-position value position)

Returns the position of the next-line (possibly the length of value, if there is no next value) as well as the chars encountered up to that line, starting from position (in value)

Returns the position of the next-line (possibly the length of value, if there is no next value)
as well as the chars encountered up to that line, starting from position (in value)
sourceraw docstring

pull-lclj/s

(pull-l {selection-start :selection-start :as state})
source

pull-rclj/s

(pull-r {selection-end :selection-end :as state})
source

reverse-stateclj/s

(reverse-state {value :value
                selection-start :selection-start
                selection-end :selection-end
                :as state})
source

starts-with-pattern?clj/s

(starts-with-pattern? s pattern)
source

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

× close