Added get-colon-value
This commit is contained in:
parent
3236f7676e
commit
357e85cfb9
|
@ -33,6 +33,7 @@
|
||||||
:getf-cadrs
|
:getf-cadrs
|
||||||
|
|
||||||
:get-colon-values
|
:get-colon-values
|
||||||
|
:get-colon-value
|
||||||
:remove-colon-values
|
:remove-colon-values
|
||||||
:replace-colon-value
|
:replace-colon-value
|
||||||
|
|
||||||
|
|
|
@ -365,6 +365,12 @@ Example:
|
||||||
(get-colon-values (line-cdr colon-lines))))))))
|
(get-colon-values (line-cdr colon-lines))))))))
|
||||||
|
|
||||||
|
|
||||||
|
;; STRING COLON_VARIABLE_NAME --> COLON_VALUE
|
||||||
|
(defun get-colon-value (string variable)
|
||||||
|
"Return a value of a `colon variable`."
|
||||||
|
|
||||||
|
(getf (get-colon-values string) (read-from-string variable)))
|
||||||
|
|
||||||
|
|
||||||
;; STRING COLON_VARIABLE_NAME --> STRING_WITHOUT_COLON_VARIABLE
|
;; STRING COLON_VARIABLE_NAME --> STRING_WITHOUT_COLON_VARIABLE
|
||||||
(defun remove-colon-values (string)
|
(defun remove-colon-values (string)
|
||||||
|
|
Reference in New Issue