inquisitor

API Reference

inquisitor

Encoding/end-of-line detection and of external-format abstraction for Common Lisp

INQUISITOR.ENCODING.DFA

  • Macro DEFINE-DFA (name &body states)
  • Macro DFA-INIT (dfa-st dfa-ar dfa-name)
  • Macro DFA-NAME (dfa)
  • Macro DFA-PROCESS (order ch)
  • Function DFA-TOP (order)
  • Function DFA-NONE (order)
  • Macro GENERATE-ORDER (&rest encodings)

INQUISITOR.ENCODING.TABLE

No exported symbols.

INQUISITOR.ENCODING.GUESS

  • Function LIST-AVAILABLE-SCHEME
  • Function CES-GUESS-FROM-VECTOR (vector scheme &optional order state)
    Guess character encoding scheme under the language `scheme`. `order` is a _dfa state_: _dfa state_ is a list consist of a) nodes of dfa, b) arrows of dfa c) score and d) name. `state` is a state except dfa state. `state` may be used or not be used by each guess-* function of scheme, although you must be pass to this function. Specifying `order` and `state` means, we can restart guessing from the point of `order` and `state`. `ces-guess-from-vector` returns `encoding` and `order`: `encoding` is an _implementation independent_ name, `order` is a state at this function stops guessing process.

INQUISITOR.EOL

  • Function EOL-AVAILABLE-P
  • Function EOL-GUESS-FROM-VECTOR (buffer)

INQUISITOR.NAMES

  • Variable +AVAILABLE-ENCODINGS+
    (loop :for ((inquisitor.names::name . type)
                . inquisitor.names::impl-name) :in inquisitor.names::+name-mapping+
          :unless (eq type :eol)
          :collect inquisitor.names::name)
  • Variable +AVAILABLE-EOLS+
    (loop :for ((inquisitor.names::name . type)
                . inquisitor.names::impl-name) :in inquisitor.names::+name-mapping+
          :when (eq type :eol)
          :collect inquisitor.names::name)
  • Function INDEPENDENT-NAME (dependent-name)
  • Function DEPENDENT-NAME (independent-name)
  • Function UNICODE-P (encoding)

INQUISITOR.EXTERNAL-FORMAT

  • Function MAKE-EXTERNAL-FORMAT (enc eol)

INQUISITOR.UTIL

  • Macro WITH-BYTE-ARRAY ((var dim) &body body)
  • Function BYTE-ARRAY-P (vec)
  • Function BYTE-INPUT-STREAM-P (stream)

INQUISITOR

  • Generic-Function DETECT-ENCODING (input symbol)
  • Method DETECT-ENCODING ((buffer vector) (scheme symbol))
    Detect character encoding scheme under the `scheme` from `buffer`.
  • Method DETECT-ENCODING ((stream stream) (scheme symbol))
    Detect character encoding scheme under the `scheme` from `stream`. Note that this method modifies `stream`'s file position.
  • Method DETECT-ENCODING ((path pathname) (scheme symbol))
    Detect character encoding scheme under the `scheme` from `pathname`.
  • Generic-Function DETECT-END-OF-LINE (input)
  • Method DETECT-END-OF-LINE ((buffer vector))
    Detect end-of-line style from `buffer`.
  • Method DETECT-END-OF-LINE ((stream stream))
    Detect end-of-line style from `stream`. Note that this method modifies `stream`'s file position.
  • Method DETECT-END-OF-LINE ((path pathname))
    Detect end-of-line style from `pathname`.
  • Generic-Function DETECT-EXTERNAL-FORMAT (input symbol)
  • Method DETECT-EXTERNAL-FORMAT ((buffer vector) (scheme symbol))
    Detect external-format under the `scheme` from `buffer`.
  • Method DETECT-EXTERNAL-FORMAT ((stream stream) (scheme symbol))
    Detect external-format under the `scheme` from `buffer`. Note that this method method modifies `stream`'s file position.
  • Method DETECT-EXTERNAL-FORMAT ((path pathname) (scheme symbol))
    Detect external-format from `pathname`.

Also exports

  • INQUISITOR.ENCODING.GUESS:LIST-AVAILABLE-SCHEME
  • INQUISITOR.EXTERNAL-FORMAT:MAKE-EXTERNAL-FORMAT
  • INQUISITOR.NAMES:DEPENDENT-NAME
  • INQUISITOR.NAMES:+AVAILABLE-ENCODINGS+
  • INQUISITOR.NAMES:+AVAILABLE-EOLS+
  • INQUISITOR.NAMES:UNICODE-P
  • INQUISITOR.NAMES:INDEPENDENT-NAME
  • INQUISITOR.EOL:EOL-AVAILABLE-P