Ignore:
Timestamp:
04/15/10 14:54:55 (13 years ago)
Author:
Mark Evenson
Message:

Move pathname functions to EXT; implement DEFSETF for URL pathnames.

Implemented DEFSETF functions for HOST, AUTHORITY, QUERY, and FRAGMENT
sections of URL pathname.

Moved PATHNAME-JAR-P and PATHNAME-URL-P to EXT.

EXT::%INVALIDATE-NAMESTRING resets the namestring after changing the
internal structure. Having to monkey around with the internal
structure of Pathname is just wrong: we should implement the get/set
accessor pattern in Java even though it would make the code more
verbose.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/test/lisp/abcl/url-pathname.lisp

    r12616 r12617  
    3030  "query=this" 
    3131  "that-fragment")
     32
     33(deftest url-pathname.3
     34    (let* ((p (pathname
     35               "http://example.org/a/b/foo.lisp?query=this#that-fragment")))
     36      (values
     37       (ext:url-pathname-scheme p)
     38       (ext:url-pathname-authority p)
     39       (ext:url-pathname-query p)
     40       (ext:url-pathname-fragment p)))
     41  "http"
     42  "example.org"
     43  "query=this" 
     44  "that-fragment")
Note: See TracChangeset for help on using the changeset viewer.