Next Previous Up Top Contents Index

18 The SYSTEM Package

find-filename-pattern-encoding-match

Function

Summary

Finds the encoding of a file based on the filename.
Package

system

Signature

find-filename-pattern-encoding-match pathname ef-spec buffer length => new-ef-spec

Arguments

pathname

Pathname identifying location of buffer.

ef-spec

An external format spec.

buffer

A buffer whose contents are examined.

length

Length (an integer) up to which buffer should be examined.

Values

new-ef-spec

Corresponding external format spec for the encoding that was found.

Description

Compares pathname (usingpathname-match-p) with elements of*filename-pattern-encoding-matches*. If a match is found, return the corresponding external format spec.
See also

*file-encoding-detection-algorithm*


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker