Function: combobulate-indent-string--strip-whitespace

combobulate-indent-string--strip-whitespace is a natively compiled function defined in combobulate-manipulation.el.

Signature

(combobulate-indent-string--strip-whitespace S &optional COUNT)

Documentation

Strip S of whitespace, possibly up to COUNT whitespace characters.

If COUNT is nil, then all whitespace is stripped.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-manipulation.el
(defun combobulate-indent-string--strip-whitespace (s &optional count)
  "Strip S of whitespace, possibly up to COUNT whitespace characters.

If COUNT is nil, then all whitespace is stripped."
  (string-trim-left
   s (if count (rx-to-string `(** 0 ,(abs count) space))
       (rx bol (* space)))))