Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
uri-template2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uri-template
uri-template2
Commits
dbd7401c
Verified
Commit
dbd7401c
authored
5 years ago
by
Vladimir Sedach
Browse files
Options
Downloads
Patches
Plain Diff
Renamed uri-template internal function to uri-template-to-string
parent
abfc81f4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
ChangeLog
+4
-2
4 additions, 2 deletions
ChangeLog
README
+1
-3
1 addition, 3 deletions
README
destructure-uri.lisp
+2
-1
2 additions, 1 deletion
destructure-uri.lisp
parenscript-implementation.lisp
+1
-1
1 addition, 1 deletion
parenscript-implementation.lisp
uri-template.lisp
+4
-7
4 additions, 7 deletions
uri-template.lisp
with
12 additions
and
14 deletions
ChangeLog
+
4
−
2
View file @
dbd7401c
2019-08-17 Vladimir Sedach <vas@oneofus.la>
* uri-template.lisp (uri-encode):
Avoid copying strings.
* uri-template.lisp (uri-encode): Avoid copying strings.
(uri-template-to-string): Renamed uri-template to
uri-template-to-string, so that the internal function would
not be exported along with the template name.
2019-08-16 Vladimir Sedach <vas@oneofus.la>
...
...
This diff is collapsed.
Click to expand it.
README
+
1
−
3
View file @
dbd7401c
...
...
@@ -58,9 +58,7 @@ read-uri-template (function)
read URI templates from your own dispatch character.
uri-template (symbol)
The car of the list that the URI template reader produces. A
function or macro.
This symbol also names the named-readtables readtable that provides
This symbol names the named-readtables readtable that provides
the #U dispatch macro.
uri-template-bind (macro)
...
...
This diff is collapsed.
Click to expand it.
destructure-uri.lisp
+
2
−
1
View file @
dbd7401c
...
...
@@ -49,7 +49,8 @@ The standard URI components look like:
%uri-fragment hash
%uri-head http://user@www.foo.com:8080
%uri-tail /dir/abc?bar=baz&xyz=1#hash"
;; template is expected to look like output of #U: '(uri-template &rest args)
(
assert
(
eq
(
car
template
)
'uri-template-to-string
))
(
let*
((
template
(
cdr
template
))
(
template-vars
(
mapcar
(
lambda
(
x
)
(
car
(
last
(
second
x
))))
...
...
This diff is collapsed.
Click to expand it.
parenscript-implementation.lisp
+
1
−
1
View file @
dbd7401c
...
...
@@ -23,5 +23,5 @@
(
parenscript:defpsmacro
uri-encode
(
x
)
`
(
encode-u-r-i-component
,
x
))
(
parenscript:defpsmacro
uri-template
(
&rest
template-args
)
(
parenscript:defpsmacro
uri-template
-to-string
(
&rest
template-args
)
`
(
+
,@
template-args
))
This diff is collapsed.
Click to expand it.
uri-template.lisp
+
4
−
7
View file @
dbd7401c
...
...
@@ -54,14 +54,11 @@ read URI templates from your own dispatch character."
,
x1
(
princ-to-string
,
x1
))))))
(
defun
uri-template
(
&rest
template-args
)
"The car of the list that the URI template reader produces. A
function or macro.
This symbol also names the named-readtables readtable that provides
the #U dispatch macro."
(
defun
uri-template-to-string
(
&rest
template-args
)
"The head of the list that the URI template reader produces. A
function or macro."
(
format
nil
"~{~A~}"
template-args
))
(
defun
uri-template-reader
(
stream
subchar
arg
)
(
declare
(
ignore
subchar
arg
))
`
(
uri-template
,@
(
read-uri-template
stream
t
)))
(
cons
'
uri-template
-to-string
(
read-uri-template
stream
t
)))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment