Changeset 4996


Ignore:
Timestamp:
12/07/03 01:16:26 (18 years ago)
Author:
piso
Message:

SIMPLE-SEARCH

Location:
trunk/j/src/org/armedbear/lisp
Files:
2 edited

Legend:

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

    r4953 r4996  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: autoloads.lisp,v 1.71 2003-12-03 11:13:20 asimon Exp $
     4;;; $Id: autoloads.lisp,v 1.72 2003-12-07 01:16:26 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    180180(autoload 'show-call-counts "profiler.lisp")
    181181(autoload-macro 'with-profiling "profiler.lisp")
     182
     183;; Extensions.
     184(in-package "EXTENSIONS")
     185(export 'simple-search)
     186(autoload 'simple-search "search.lisp")
  • trunk/j/src/org/armedbear/lisp/search.lisp

    r4408 r4996  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: search.lisp,v 1.15 2003-10-16 13:38:16 piso Exp $
     4;;; $Id: search.lisp,v 1.16 2003-12-07 01:16:06 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    106106        (vector-search sequence2 sequence1))))
    107107
     108(defun simple-search (sequence1 sequence2)
     109  (if (and (stringp sequence1) (stringp sequence2))
     110      (simple-string-search sequence1 sequence2)
     111      (search sequence1 sequence2 :from-end nil)))
     112
    108113(when (fboundp 'jvm::jvm-compile)
    109114  (jvm::jvm-compile 'search))
Note: See TracChangeset for help on using the changeset viewer.