Compare commits

..

No commits in common. '5a6afd49b09a9de9c2b28cbd9b5e8741f6154726' and '863345c28c0476e413f11d04e1ce6545bc4a2975' have entirely different histories.

  1. 16
      src/rustint/core.clj

@ -2531,7 +2531,6 @@
(defn especificador-formato [arg, rustf] (defn especificador-formato [arg, rustf]
(cond (cond
(char? arg) "%c"
(string? arg) "%s" (string? arg) "%s"
(int? arg) "%d" (int? arg) "%d"
(and (float? arg) (nil? rustf) (== (pasar-a-int arg) arg)) "%.0f" (and (float? arg) (nil? rustf) (== (pasar-a-int arg) arg)) "%.0f"
@ -2545,10 +2544,13 @@
) )
(defn replace-groups [string groups] (defn replace-groups [string groups]
(cond (if (empty? groups)
(nil? groups) string string
(empty? groups) string (
:else (replace-groups (clojure.string/replace-first string #"\{:?(.\d+)?\}" (first groups)) (rest groups)) replace-groups
(clojure.string/replace-first string #"\{:?(.\d+)?\}" (first groups))
(rest groups)
)
) )
) )
@ -2559,9 +2561,11 @@
(rest args) (rest args)
(get-rust-formatters (first args)) (get-rust-formatters (first args))
) )
] ] (if (empty? clojure-fspecifiers)
args
(cons (replace-groups (first args) clojure-fspecifiers) (rest args)) (cons (replace-groups (first args) clojure-fspecifiers) (rest args))
) )
)
) )
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Loading…
Cancel
Save