Package babel

babel is a charset conversion library.

About This Package

Overview
Introduction

Overview

Author
Copyright (C) 2007, Luis Oliveira

Version
This documentation is for version 0.3.0.

Homepage
http://common-lisp.net/project/babel/

Mailing List
http://lists.common-lisp.net/mailman/listinfo/babel-devel

Download
The current version is 0.3.0, released on July 28, 2008. A tarball is available for download from http://common-lisp.net/project/babel/releases/babel_0.3.0.tar.gz

Source Code
babel's code repository and issue tracker are hosted on github.

Dependencies
babel depends on the libraries trivial-features and alexandria.

License
Copyright (C) 2007, Luis Oliveira <loliveira@common-lisp.net>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Introduction

babel is a charset encoding/decoding library, not unlike GNU libiconv, but completely written in Common Lisp.

babel strives to achieve decent performance. To that effect, we use OpenMCL's approach of calculating the destination buffer size in advance. Most of the encoding/decoding algorithms have been adapted from OpenMCL's source.

Another important goal is reusability. Similarly to SBCL, we define an interface wherein the algorithms can be reused between a variety of data types so long we're dealing with conversions between octets and unicode code points.

babel comes with converters between strings and (unsigned-byte 8) vectors but can be easily extended to deal with, e.g., strings and foreign memory, vectors and Closure's runes, etc ...

Exported Symbol Index

*default-character-encoding*, Variable
*default-eol-style*, Variable
character-coding-error, Condition  (undocumented)
character-coding-error-buffer, Generic Function  (undocumented)
character-coding-error-encoding, Generic Function  (undocumented)
character-coding-error-position, Generic Function  (undocumented)
character-decoding-error, Condition  (undocumented)
character-decoding-error-octets, Generic Function  (undocumented)
character-encoding-error, Condition  (undocumented)
character-encoding-error-code, Generic Function  (undocumented)
character-out-of-range, Condition
concatenate-strings-to-octets, Function
enable-sharp-backslash-syntax, Macro  (undocumented)
end-of-input-in-character, Condition
ensure-external-format, Function  (undocumented)
external-format, Class
external-format-encoding, Generic Function  (undocumented)
external-format-eol-style, Generic Function  (undocumented)
external-format-equal, Function  (undocumented)
invalid-utf8-continuation-byte, Condition
invalid-utf8-starter-byte, Condition
list-character-encodings, Function
make-external-format, Function  (undocumented)
octets-to-string, Function  (undocumented)
overlong-utf8-sequence, Condition
set-sharp-backslash-syntax-in-readtable, Function  (undocumented)
simple-unicode-string, Type
string-size-in-octets, Function  (undocumented)
string-to-octets, Function  (undocumented)
unicode-char, Type
unicode-char-code-limit, Variable
unicode-string, Type
vector-size-in-chars, Function  (undocumented)