X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=strings.lisp;h=975f1e2dcaad34dd1ff7b98d12ab1975a15cbdd8;hp=91e51987e8511608f40e758a4ed484e1eef863a6;hb=4f21397f1d96da80fbac6f587cb384e56208b497;hpb=85e0b81ffb73be94a9954ae2034bd0067ba6c221 diff --git a/strings.lisp b/strings.lisp index 91e5198..975f1e2 100644 --- a/strings.lisp +++ b/strings.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: strings.lisp,v 1.13 2003/04/29 00:46:35 kevin Exp $ +;;;; $Id: strings.lisp,v 1.14 2003/04/29 00:49:09 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -115,6 +115,13 @@ (subseq s 0 (1- len)) s))) +(defun nstring-trim-last-character (s) + "Return the string less the last character" + (let ((len (length s))) + (if (plusp len) + (nsubseq s 0 (1- len)) + s))) + (defun string-hash (str &optional (bitmask 65535)) (let ((hash 0)) (declare (fixnum hash)