diff options
| author | 2025-10-18 08:42:44 +0300 | |
|---|---|---|
| committer | 2025-10-18 08:42:44 +0300 | |
| commit | 9e7c8dfab25da9beb86fd4ed4115895eedb4c8ab (patch) | |
| tree | d05cf25dc5aeed47f8b2585ecc5a81ab80cbdbaf /src/tg/type-macros.lisp | |
| parent | Bunch more tiny improvements (diff) | |
| download | ukkoclot-9e7c8dfab25da9beb86fd4ed4115895eedb4c8ab.tar.gz ukkoclot-9e7c8dfab25da9beb86fd4ed4115895eedb4c8ab.tar.xz ukkoclot-9e7c8dfab25da9beb86fd4ed4115895eedb4c8ab.zip | |
Replace bunch of our string utilities with str library
Diffstat (limited to 'src/tg/type-macros.lisp')
| -rw-r--r-- | src/tg/type-macros.lisp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tg/type-macros.lisp b/src/tg/type-macros.lisp index 5f99cba..75afab0 100644 --- a/src/tg/type-macros.lisp +++ b/src/tg/type-macros.lisp | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | (:use :c2cl :iterate) | 5 | (:use :c2cl :iterate) |
| 6 | (:import-from :alexandria :with-gensyms) | 6 | (:import-from :alexandria :with-gensyms) |
| 7 | (:import-from :com.dieggsy.f-string :enable-f-strings) | 7 | (:import-from :com.dieggsy.f-string :enable-f-strings) |
| 8 | (:import-from :str) | ||
| 8 | (:import-from :ukkoclot/serializing :parse-value) | 9 | (:import-from :ukkoclot/serializing :parse-value) |
| 9 | (:import-from :ukkoclot/hash-tables :gethash-lazy) | 10 | (:import-from :ukkoclot/hash-tables :gethash-lazy) |
| 10 | (:import-from :ukkoclot/strings :lisp->snake-case) | ||
| 11 | (:local-nicknames | 11 | (:local-nicknames |
| 12 | (:jzon :com.inuoe.jzon)) | 12 | (:jzon :com.inuoe.jzon)) |
| 13 | (:export :define-tg-type)) | 13 | (:export :define-tg-type)) |
| @@ -39,7 +39,7 @@ | |||
| 39 | (intern (concatenate 'string (symbol-name name) "-" (symbol-name (field-name field))))) | 39 | (intern (concatenate 'string (symbol-name name) "-" (symbol-name (field-name field))))) |
| 40 | 40 | ||
| 41 | (defun field-hash-key (field) | 41 | (defun field-hash-key (field) |
| 42 | (string-downcase (lisp->snake-case (symbol-name (field-name field))))) | 42 | (str:snake-case (field-name field))) |
| 43 | 43 | ||
| 44 | (defun field-keyword (field) | 44 | (defun field-keyword (field) |
| 45 | (intern (symbol-name (field-name field)) :keyword)) | 45 | (intern (symbol-name (field-name field)) :keyword)) |