FunctionPackage: exclToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.1
Unrevised

sniff-for-unicode

Arguments: stream

This function checks stream, which must be either a character stream or a simple-stream, for the unicode byte-order marker and returns two values. The first returned value is either the :unicode external-format (if the unicode byte-order marker is found) or the stream's current external-format (if the unicode byte-order marker is not found).

The second returned value is a boolean indicating whether the first returned value is the stream's current external-format (which it always is when the unicode byte-order marker is not found and may or may not be when the unicode byte-order marker is found).

This function operates by using peek-char on the stream. The file-position for the stream remains unchanged after calling sniff-for-unicode.

See The unicode and fat External-Format Types in iacl.htm for information on the unicode external format and iacl.htm in general for information on international character support in Allegro CL.


Copyright (c) 1998-2001, Franz Inc. Berkeley, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.1 update # 1. This page was not revised.
Created 2001.12.15.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.1
Unrevised