 (ns cljs.sourcemap.base64-vlq
-  (require [cljs.sourcemap.base64 :as base64]))
+  (require [clojure.string :as string]
+           [cljs.sourcemap.base64 :as base64]))
 
 (def ^:const vlq-base-shift 5)
 (def ^:const vlq-base (bit-shift-left 1 vlq-base-shift))

              shift (+ shift vlq-base-shift)]
          (if continuation?
            (recur i result shift)
            {:value (from-vlq-signed result) :rest (.substring s i)}))))))

(comment
  ;; tests


  (encode 32) ; "gC"
  (decode "gC") ; {:value 32 :rest ""}

  (decode "AAgBC") ; (0 0 16 1)

  ;; lines kept count by semicolons
  ;; the above is col 0, file 0, line 16, col 1
  )