A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-1338.htm below:

detect-eol-style

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.

Description

When the encoding in ef-spec has foreign type (unsigned-byte 8), search buffer up to length for the first occurrence of the byte (10). If found, and it is preceded in buffer by (13), merge ef-spec with

(:default :eol-style :crlf)

If found and is not preceded by (13), merge ef-spec with

(:default :eol-style :lf)

Thus a complete external format spec is constructed. Otherwise, return ef-spec.

When the encoding in ef-spec has foreign type (unsigned-byte 16), search buffer up to length for the first occurrence of the byte sequence (13 0 10). If found, merge ef-spec with

(:default :eol-style :crlf)

If (13 0 10) is not found, search buffer up to length for (10 0) or (0 10). If found, merge ef-spec with

(:default :eol-style :lf)

Thus a complete external format spec is constructed. Otherwise, return ef-spec.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4