Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cl-base64
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyxt
cl-base64
Commits
013ce69e
Commit
013ce69e
authored
22 years ago
by
Kevin M. Rosenberg
Browse files
Options
Downloads
Patches
Plain Diff
r3730: *** empty log message ***
parent
7a201bb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
src.lisp
+8
-9
8 additions, 9 deletions
src.lisp
with
14 additions
and
9 deletions
debian/changelog
+
6
−
0
View file @
013ce69e
cl-base64 (2.1.0-2) unstable; urgency=low
* Fix broken string-to-base64
-- Kevin M. Rosenberg <kmr@debian.org> Sat, 4 Jan 2003 06:40:32 -0700
cl-base64 (2.0-1) unstable; urgency=low
cl-base64 (2.0-1) unstable; urgency=low
* Ignore whitespace in base64 strings
* Ignore whitespace in base64 strings
...
...
This diff is collapsed.
Click to expand it.
src.lisp
+
8
−
9
View file @
013ce69e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
;;;; Copyright 2002-2003 Kevin M. Rosenberg
;;;; Copyright 2002-2003 Kevin M. Rosenberg
;;;; Permission to use with BSD-style license included in the COPYING file
;;;; Permission to use with BSD-style license included in the COPYING file
;;;;
;;;;
;;;; $Id: src.lisp,v 1.
5
2003/01/04
08:33:13
kevin Exp $
;;;; $Id: src.lisp,v 1.
6
2003/01/04
13:43:27
kevin Exp $
(
defpackage
#:base64
(
defpackage
#:base64
(
:use
#:cl
)
(
:use
#:cl
)
...
@@ -98,8 +98,7 @@ with a #\Newline."
...
@@ -98,8 +98,7 @@ with a #\Newline."
(
let*
((
string-length
(
length
string
))
(
let*
((
string-length
(
length
string
))
(
complete-group-count
(
truncate
string-length
3
))
(
complete-group-count
(
truncate
string-length
3
))
(
remainder
(
nth-value
1
(
truncate
string-length
3
)))
(
remainder
(
nth-value
1
(
truncate
string-length
3
)))
(
padded-length
(
+
remainder
(
padded-length
(
*
4
(
truncate
(
+
string-length
2
)
3
)))
(
*
4
complete-group-count
)))
(
num-lines
(
if
(
plusp
columns
)
(
num-lines
(
if
(
plusp
columns
)
(
truncate
(
+
padded-length
(
1-
columns
))
columns
)
(
truncate
(
+
padded-length
(
1-
columns
))
columns
)
0
))
0
))
...
@@ -148,18 +147,18 @@ with a #\Newline."
...
@@ -148,18 +147,18 @@ with a #\Newline."
(
the
fixnum
(
the
fixnum
(
logand
#x3f
(
logand
#x3f
(
the
fixnum
(
ash
svalue
-6
))))))
(
the
fixnum
(
ash
svalue
-6
))))))
(
output-char
pad
))
(
output-char
pad
))
(
if
(
>
chars
3
)
(
if
(
>
chars
3
)
(
output-char
(
output-char
(
schar
encode-table
(
schar
encode-table
(
the
fixnum
(
the
fixnum
(
logand
#x3f
svalue
))))
(
logand
#x3f
svalue
))))
(
output-char
pad
))))
(
output-char
pad
))))
(
do
((
igroup
0
(
1+
igroup
))
(
do
((
igroup
0
(
1+
igroup
))
(
isource
0
(
+
isource
3
)))
(
isource
0
(
+
isource
3
)))
((
=
igroup
complete-group-count
)
((
=
igroup
complete-group-count
)
(
c
ase
remainder
(
c
ond
(
2
(
(
=
remainder
2
)
(
output-group
(
output-group
(
the
fixnum
(
the
fixnum
(
+
(
+
...
@@ -170,10 +169,10 @@ with a #\Newline."
...
@@ -170,10 +169,10 @@ with a #\Newline."
(
ash
(
char-code
(
the
character
(
ash
(
char-code
(
the
character
(
char
string
(
1+
isource
))))
8
))))
(
char
string
(
1+
isource
))))
8
))))
3
))
3
))
(
1
(
(
=
remainder
1
)
(
output-group
(
output-group
(
the
fixnum
(
the
fixnum
(
char-code
(
the
character
(
char
string
isource
))))
(
ash
(
char-code
(
the
character
(
char
string
isource
)))
16
)
)
2
)))
2
)))
result
)
result
)
(
declare
(
fixnum
igroup
isource
))
(
declare
(
fixnum
igroup
isource
))
...
...
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