r10081: add utime-to-posix-time
[kmrcl.git] / package.lisp
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.lisp
6 ;;;; Purpose:       Package definition for kmrcl package
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Apr 2000
9 ;;;;
10 ;;;; $Id$
11 ;;;;
12 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; KMRCL users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 (in-package #:cl-user)
20
21 (defpackage #:kmrcl
22   (:nicknames #:kl)
23   (:use #:cl)
24   (:export
25    #:ensure-integer
26    #:mklist
27    #:filter
28    #:map-and-remove-nils
29    #:appendnew
30    #:memo-proc
31    #:memoize
32    #:defun-memo
33    #:_f
34    #:compose
35    #:until
36    #:while
37    #:for
38
39    ;; strings.lisp
40    #:string-trim-whitespace
41    #:string-left-trim-whitespace
42    #:string-right-trim-whitespace
43    #:mapappend
44    #:mapcar-append-string
45    #:mapcar2-append-string
46    #:position-char
47    #:position-not-char
48    #:delimited-string-to-list
49    #:string-delimited-string-to-list
50    #:list-to-delimited-string
51    #:prefixed-fixnum-string
52    #:integer-string
53    #:fast-string-search
54    #:string-substitute
55    #:string-to-list-skip-delimiter
56    #:string-starts-with
57    #:count-string-char
58    #:count-string-char-if
59    #:hexchar
60    #:encode-uri-string
61    #:decode-uri-string
62    #:non-alphanumericp
63    #:random-string
64    #:first-char
65    #:last-char
66    #:ensure-string
67    #:string-right-trim-one-char
68    #:string-strip-ending
69    #:string-maybe-shorten
70    #:string-elide
71    #:shrink-vector
72    #:collapse-whitespace
73    #:string->list
74    #:trim-non-alphanumeric
75    
76    ;; io.lisp
77    #:indent-spaces
78    #:indent-html-spaces
79    #:print-n-chars
80    #:print-n-strings
81    #:print-list
82    #:print-rows
83    #:write-fixnum
84    #:file-subst
85    #:stream-subst
86    #:null-output-stream
87    #:directory-tree
88    #:write-utime-hms
89    #:write-utime-hm
90    #:write-utime-ymdhms
91    #:write-utime-ymdhm
92    #:write-utime-hms-stream
93    #:write-utime-hm-stream
94    #:write-utime-ymdhms-stream
95    #:write-utime-ymdhm-stream
96    #:with-utime-decoding
97    #:with-utime-decoding-utc-offset
98    #:is-dst
99    #:year
100    #:month
101    #:day-of-month
102    #:hour
103    #:minute
104    #:second
105    #:daylight-p
106    #:zone
107    #:day-of-month
108    #:day-of-week
109    #:+datetime-number-strings+   
110    #:utc-offset
111    #:copy-binary-stream
112
113    ;; impl.lisp
114    #:probe-directory
115    #:cwd
116    #:quit
117    #:command-line-arguments
118    #:copy-file
119    #:run-shell-command
120
121    ;; lists.lisp
122    #:remove-from-tree-if
123    #:find-tree
124    #:with-each-file-line
125    #:with-each-stream-line
126    #:remove-keyword
127    #:remove-keywords
128    #:append-sublists
129    #:alist-elem-p
130    #:alistp
131    #:get-alist
132    #:update-alist
133    #:alist-plist
134    #:plist-alist
135    #:update-plist
136    #:get-plist
137    #:flatten
138    #:unique-slot-values
139    
140    ;; seq.lisp
141    #:nsubseq
142    
143    ;; math.lisp
144    #:ensure-integer
145    #:histogram
146    #:fixnum-width
147    #:scaled-epsilon
148    
149    ;; macros.lisp
150    #:time-iterations
151    #:time-seconds
152    #:in
153    #:mean
154    #:with-gensyms
155    #:let-if
156    #:let-when
157    #:aif
158    #:awhen
159    #:awhile
160    #:aand
161    #:acond
162    #:alambda
163    #:it
164    #:mac
165    #:mv-bind
166    #:deflex
167    #:def-cached-vector
168    #:def-cached-instance
169    #:with-ignore-errors
170    #:ppmx
171    #:defconstant*
172    #:defvar-unbound
173    
174    ;; files.lisp
175    #:print-file-contents
176    #:read-stream-to-string
177    #:read-file-to-string
178    #:read-file-to-usb8-array
179    #:read-stream-to-strings
180    #:read-file-to-strings
181    
182    ;; strings.lisp
183    #:string-append
184    #:count-string-words
185    #:substitute-string-for-char
186    #:string-trim-last-character
187    #:nstring-trim-last-character
188    #:string-hash
189    #:is-string-empty
190    #:is-char-whitespace
191    #:not-whitespace-char
192    #:is-string-whitespace
193    #:string-invert
194    #:escape-xml-string
195    #:make-usb8-array
196    #:usb8-array-to-string
197    #:string-to-usb8-array
198    #:substitute-chars-strings
199    #:add-sql-quotes
200    #:escape-backslashes
201    #:concat-separated-strings
202    #:print-separated-strings
203    #:lex-string
204    #:split-alphanumeric-string
205    
206    ;; strmatch.lisp
207    #:score-multiword-match
208    #:multiword-match
209    
210    ;; symbols.lisp
211    #:ensure-keyword
212    #:ensure-keyword-upcase
213    #:ensure-keyword-default-case
214    #:concat-symbol
215    #:concat-symbol-pkg
216    #:show
217    #:show-variables
218    #:show-functions
219    
220    ;; From attrib-class.lisp
221    #:attributes-class
222    #:slot-attribute
223    #:slot-attributes
224
225    #:generalized-equal
226
227    ;; From buffered input
228    
229    #:make-fields-buffer
230    #:read-buffered-fields
231    
232    ;; From datetime.lisp
233    #:pretty-date
234    #:date-string
235    #:print-float-units
236    #:print-seconds
237    #:posix-time-to-utime
238    #:utime-to-posix-time
239    
240    ;; From random.lisp
241    #:seed-random-generator
242    #:random-choice
243    
244    ;; From repl.lisp
245    #:make-repl
246    #:init/repl
247    
248    ;; From web-utils
249    #:*base-url*
250    #:base-url!
251    #:make-url
252    #:*standard-html-header*
253    #:*standard-xhtml-header*
254    #:*standard-xml-header*
255    #:user-agent-ie-p
256    #:decode-uri-query-string
257    #:split-uri-query-string
258    
259    ;; From xml-utils
260    #:sgml-header-stream
261    #:xml-tag-contents
262    #:positions-xml-tag-contents
263    #:cdata-string
264    #:write-cdata
265    
266    ;; From console
267    #:*console-msgs*
268    #:cmsg
269    #:cmsg-c
270    #:cmsg-add
271    #:cmsg-remove
272    #:fixme
273
274    ;; byte-stream
275    #:make-binary-array-output-stream
276    #:get-output-stream-data
277    #:dump-output-stream-data
278    #:make-byte-array-input-stream
279
280    ;; sockets.lisp
281    #:make-active-socket
282    #:close-active-socket
283    
284    ;; listener.lisp
285    #:init/listener
286    #:stop-all/listener
287    #:listener
288    
289    ;; fformat.lisp
290    #:fformat
291
292    ;; os.lisp
293    #:command-output
294    #:run-shell-command-output-stream
295    #:delete-directory-and-files
296    #:file-size
297
298    ;; color.lisp
299    #:rgb->hsv
300    #:rgb255->hsv255
301    #:hsv->rgb
302    #:hsv255->rgb255
303    #:hsv-equal
304    #:hsv255-equal
305    #:hsv-similar
306    #:hsv255-similar
307    #:hue-difference
308    #:hue-difference-fixnum
309    ))
310
311
312