85 lines
4.3 KiB
HTML
85 lines
4.3 KiB
HTML
|
<!DOCTYPE html>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|||
|
<title>CLiki: creole</title>
|
|||
|
<link rel="alternate" type="application/atom+xml" title="ATOM feed of edits to current article"
|
|||
|
href="https://www.cliki.net/site/feed/article.atom?title=creole">
|
|||
|
<link rel="stylesheet" href="static/css/style.css">
|
|||
|
<link rel="stylesheet" href="static/css/colorize.css">
|
|||
|
</head>
|
|||
|
|
|||
|
<body>
|
|||
|
<span class="hidden">CLiki - creole</span>
|
|||
|
<div id="content"><div id="content-area"><div id="article-title">creole</div><div id="article"><a href="http://sourceforge.jp/projects/creole/">creole</a> is a library for converting a string between multibyte and unicode <a href="character encoding.html" class="category">character encoding</a>s.<p>
|
|||
|
creole supports SBCL and other unicode(UTF-8) supported implementations. (eg. clisp, Clozure CL)<p>※ creole is optimized for SBCL<p><br>
|
|||
|
<hr>
|
|||
|
<b>Exported symbols:</b><br><br>
|
|||
|
Variable <tt>*DEFAULT-EXTERNAL-FORMAT*</tt><br>
|
|||
|
Default value is :UTF-8.<p>Variable <tt>*EXTERNAL-FORMAT*</tt><br>
|
|||
|
A list of avaiable external-format.<p>Function <tt>STRING-TO-OCTETS (string &key (external-format *default-external-format*) (start 0) (end (length string))</tt><p>Function <tt>OCTETS-TO-STRING (octets &key (external-format *default-external-format*) (start 0) (end (length octets))</tt>
|
|||
|
<pre>
|
|||
|
;;;;;;;;;;;;;;;;;;;;;
|
|||
|
;;;; string => octets
|
|||
|
(creole:string-to-octets "Common Lisp")
|
|||
|
=> #(67 111 109 109 111 110 32 76 105 115 112) ; default (= *default-external-format*) is UTF-8
|
|||
|
T ; input string is legal
|
|||
|
|
|||
|
(creole:string-to-octets "&#28450;&#23383;A" :external-format :ascii)
|
|||
|
=> #(63 63 65)
|
|||
|
NIL ; input including illegal character
|
|||
|
|
|||
|
(creole:string-to-octets "&#28450;&#23383;A" :external-format :euc-jp)
|
|||
|
=> #(180 193 187 250 65)
|
|||
|
T
|
|||
|
|
|||
|
;;;;;;;;;;;;;;;;;;;;;;
|
|||
|
;;;; octets => string
|
|||
|
(creole:octets-to-string
|
|||
|
(creole:string-to-octets "Common Lisp"))
|
|||
|
=> "Common Lisp"
|
|||
|
T
|
|||
|
|
|||
|
(creole:octets-to-string
|
|||
|
(creole:string-to-octets "&#28450;&#23383;A" :external-format :euc-jp)
|
|||
|
:external-format :ascii)
|
|||
|
=> "????A"
|
|||
|
NIL ; input including illegal octets as ASCII
|
|||
|
</pre></div></div>
|
|||
|
<div id="footer" class="buttonbar"><ul><li><a href="creole.html">Current version</a></li>
|
|||
|
<li><a href="https://www.cliki.net/site/history?article=creole">History</a></li>
|
|||
|
<li><a href="https://www.cliki.net/site/backlinks?article=creole">Backlinks</a></li><li><a href="https://www.cliki.net/site/edit-article?title=creole&from-revision=3686416193">Edit</a></li><li><a href="https://www.cliki.net/site/edit-article?create=t">Create</a></li></ul></div>
|
|||
|
</div>
|
|||
|
<div id="header-buttons" class="buttonbar">
|
|||
|
<ul>
|
|||
|
<li><a href="https://www.cliki.net/">Home</a></li>
|
|||
|
<li><a href="https://www.cliki.net/site/recent-changes">Recent Changes</a></li>
|
|||
|
<li><a href="CLiki.html">About</a></li>
|
|||
|
<li><a href="Text Formatting.html">Text Formatting</a></li>
|
|||
|
<li><a href="https://www.cliki.net/site/tools">Tools</a></li>
|
|||
|
</ul>
|
|||
|
<div id="search">
|
|||
|
<form action="https://www.cliki.net/site/search">
|
|||
|
<label for="search_query" class="hidden">Search CLiki</label>
|
|||
|
<input type="text" name="query" id="search_query" value="" />
|
|||
|
<input type="submit" value="search" />
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div id="pageheader">
|
|||
|
<div id="header">
|
|||
|
<span id="logo">CLiki</span>
|
|||
|
<span id="slogan">the common lisp wiki</span>
|
|||
|
<div id="login"><form method="post" action="https://www.cliki.net/site/login">
|
|||
|
<label for="login_name" class="hidden">Account name</label>
|
|||
|
<input type="text" name="name" id="login_name" class="login_input" />
|
|||
|
<label for= "login_password" class="hidden">Password</label>
|
|||
|
<input type="password" name="password" id="login_password" class="login_input" />
|
|||
|
<input type="submit" name="login" value="login" id="login_submit" /><br />
|
|||
|
<div id="register"><a href="https://www.cliki.net/site/register">register</a></div>
|
|||
|
<input type="submit" name="reset-pw" value="reset password" id="reset_pw" />
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body></html>
|