Changeset 10999


Ignore:
Timestamp:
02/25/06 04:20:54 (18 years ago)
Author:
piso
Message:

ROUND-UP: patch from Carlos Ungil <Carlos.Ungil@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/format.lisp

    r9606 r10999  
    11;;; format.lisp
    22;;;
    3 ;;; Copyright (C) 2004-2005 Peter Graves
    4 ;;; $Id: format.lisp,v 1.31 2005-07-07 23:31:52 piso Exp $
     3;;; Copyright (C) 2004-2006 Peter Graves
     4;;; $Id: format.lisp,v 1.32 2006-02-25 04:20:54 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    249249         (n (read-from-string (setf string (remove #\. string))))
    250250         (s (princ-to-string (incf n))))
     251    (loop for char across string
     252      while (equal char #\0)
     253      do (setf s (concatenate 'string "0" s)))
    251254    (cond ((null index)
    252255           s)
Note: See TracChangeset for help on using the changeset viewer.