Changeset 3206
- Timestamp:
- 05/30/08 00:24:33 (8 months ago)
- Files:
-
- trunk/thirdparty/chunga/doc/index.html (modified) (2 diffs)
- trunk/thirdparty/chunga/known-words.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/thirdparty/chunga/doc/index.html
r3186 r3206 644 644 </blockquote> 645 645 646 <p><br>[Function]<br><a class=none name='as-capitalized-string'><b>as-capitalized-string</b> <i>keyword <tt>&key</tt> destructivep</i> => <i>capitalized-string</i></a>646 <p><br>[Function]<br><a class=none name='as-capitalized-string'><b>as-capitalized-string</b> <i>keyword</i> => <i>capitalized-string</i></a> 647 647 <blockquote><br> 648 648 Kind of the inverse of <a href="#as-keyword"><code>AS-KEYWORD</code></a>. Has essentially the same effect 649 649 as <a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_stg_up.htm"><code>STRING-CAPITALIZE</code></a> but is optimized for "known" keywords like 650 <code>:CONTENT-LENGTH</code> or <code>:GET</code>. Uses <code>NSTRING-CAPITALIZE</code> if <code><i>destructivep</i></code> is 651 true. 650 <code>:CONTENT-LENGTH</code> or <code>:GET</code>. 652 651 </blockquote> 653 652 … … 660 659 </p> 661 660 <p> 662 $Header: /usr/local/cvsrep/chunga/doc/index.html,v 1.3 2 2008/05/26 08:18:49 edi Exp $661 $Header: /usr/local/cvsrep/chunga/doc/index.html,v 1.33 2008/05/29 22:22:59 edi Exp $ 663 662 <p><a href="http://weitz.de/index.html">BACK TO MY HOMEPAGE</a> 664 663 trunk/thirdparty/chunga/known-words.lisp
r3186 r3206 1 1 ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*- 2 ;;; $Header: /usr/local/cvsrep/chunga/known-words.lisp,v 1. 2 2008/05/24 21:40:54edi Exp $2 ;;; $Header: /usr/local/cvsrep/chunga/known-words.lisp,v 1.3 2008/05/29 22:21:09 edi Exp $ 3 3 4 4 ;;; Copyright (c) 2006-2008, Dr. Edmund Weitz. All rights reserved. … … 145 145 (make-keyword string destructivep))) 146 146 147 (defun as-capitalized-string (keyword &key destructivep)147 (defun as-capitalized-string (keyword) 148 148 "Kind of the inverse of AS-KEYWORD. Has essentially the same effect 149 149 as STRING-CAPITALIZE but is optimized for \"known\" keywords like 150 :CONTENT-LENGTH or :GET. Uses NSTRING-CAPITALIZE if DESTRUCTIVEP is 151 true. " 150 :CONTENT-LENGTH or :GET." 152 151 (or (gethash keyword +keyword-to-string-hash+) 153 (if destructivep 154 (nstring-capitalize keyword) 155 (string-capitalize keyword)))) 152 (string-capitalize keyword)))
