Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uri-template2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uri-template
uri-template2
Commits
abfc81f4
Verified
Commit
abfc81f4
authored
Aug 17, 2019
by
Vladimir Sedach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change uri-encode to avoid copying strings
parent
2b59d73f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
ChangeLog
ChangeLog
+5
-0
uri-template.lisp
uri-template.lisp
+6
-1
No files found.
ChangeLog
View file @
abfc81f4
2019-08-17 Vladimir Sedach <vas@oneofus.la>
* uri-template.lisp (uri-encode):
Avoid copying strings.
2019-08-16 Vladimir Sedach <vas@oneofus.la>
* Removed uri-encode? and uri-decode? variables.
...
...
uri-template.lisp
View file @
abfc81f4
...
...
@@ -47,7 +47,12 @@ read URI templates from your own dispatch character."
(
reverse
template-accumulator
))))
(
defmacro
uri-encode
(
x
)
`
(
percent-encoding:encode
(
princ-to-string
,
x
)))
(
let
((
x1
(
gensym
)))
`
(
percent-encoding:encode
(
let
((
,
x1
,
x
))
(
if
(
stringp
,
x1
)
,
x1
(
princ-to-string
,
x1
))))))
(
defun
uri-template
(
&rest
template-args
)
"The car of the list that the URI template reader produces. A
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment