Skip to content

Commit

Permalink
string: rename to quaviver/stream
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Aug 10, 2024
1 parent a9fe522 commit 0f7b82f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ floating point numbers into formats like [binary32][]. Quaviver also
includes a high-level interface to reading, writing and parsing
numbers in various formats.

## QUAVIVER/STRING system and package
## QUAVIVER/STREAM system and package

The QUAVIVER/STRING package includes three different functions for
The QUAVIVER/STREAM package includes three different functions for
parsing, reading and writing numbers. Each one of these functions take
several keyword arguments which control the serialization method. All
three functions include a keyword argument :STYLE which selects the
Expand Down Expand Up @@ -83,21 +83,21 @@ POSITION the index to the end of the number in STRING.
#### Examples

```
CL-USER> (asdf:load-system "quaviver/string")
CL-USER> (asdf:load-system "quaviver/stream")
T
CL-USER> (quaviver/string:parse-number " 3.1415926535897932384626433832795028841971d0")
CL-USER> (quaviver/stream:parse-number " 3.1415926535897932384626433832795028841971d0")
3.141592653589793d0
46
CL-USER> (quaviver/string:parse-number " 314")
CL-USER> (quaviver/stream:parse-number " 314")
314
5
CL-USER> (quaviver/string:parse-number " 0xfa" :style :c99)
CL-USER> (quaviver/stream:parse-number " 0xfa" :style :c99)
250
6
CL-USER> (quaviver/string:parse-number " 0xfa.e10" :style :c99)
CL-USER> (quaviver/stream:parse-number " 0xfa.e10" :style :c99)
; Evaluation aborted on #<QUAVIVER.CONDITION:INVALID-CHARACTER-ERROR {1002EF2FA3}>.
CL-USER> (quaviver/string:parse-number " 0xfa.e10" :style :c++20)
CL-USER> (quaviver/stream:parse-number " 0xfa.e10" :style :c++20)
700.0d0
10
```
Expand Down
2 changes: 1 addition & 1 deletion code/string/clients.lisp → code/stream/clients.lisp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package #:quaviver/string)
(in-package #:quaviver/stream)

(defclass blub-impl (quaviver/blub:client
quaviver/dragonbox:nearest-client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package #:quaviver/string)
(in-package #:quaviver/stream)

(defun whitespace-char-p (x)
(and (member x '(#\space #\tab #\page #\newline #\return))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package #:quaviver/string)
(in-package #:quaviver/stream)

(defun write-number (value stream
&key (base 10) (style :common-lisp))
Expand Down
2 changes: 1 addition & 1 deletion code/string/packages.lisp → code/stream/packages.lisp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(cl:defpackage #:quaviver/string
(cl:defpackage #:quaviver/stream
(:use #:common-lisp)
(:export #:parse-number
#:read-number
Expand Down
4 changes: 2 additions & 2 deletions quaviver.asd
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
:components ((:file "packages")
(:file "implementation")))))

(defsystem "quaviver/string"
(defsystem "quaviver/stream"
:description "Serialization/Deserialization for Quaviver"
:license "MIT"
:author ("Tarn W. Burton")
Expand All @@ -282,7 +282,7 @@
"quaviver/dragonbox"
"quaviver/liebler")
:components ((:module "code"
:pathname "code/string/"
:pathname "code/stream/"
:serial t
:components ((:file "packages")
(:file "clients")
Expand Down

0 comments on commit 0f7b82f

Please sign in to comment.