Description – Intel Extensible Firmware Interface User Manual

Page 411

Advertising
background image

Protocols

— Bootable Image Support

Version 1.10

12/01/02

11-51

StrToFat

Converts a Null-terminated Unicode string to legal characters in
a FAT filename using an OEM character set. See the

StrToFat()

function description.

SupportedLanguages

A Null-terminated ASCII string that contains one or more
ISO 639-2 language codes.

Description

The

UNICODE_COLLATION

protocol is used to perform case-insensitive comparisons of Unicode

strings.

One or more of the

UNICODE_COLLATION

protocols may be present at one time. Each protocol

instance can support one or more language codes. The language codes that are supported in the

UNICODE_COLLATION

interface is declared in

SupportedLanguages

.

The

SupportedLanguages

field is a list of one or more 3-character language codes in a Null-

terminated ASCII string. These language codes come from the ISO 639-2 Specification. For
example, if the protocol supports English, then the string “eng” would be returned. If it supported
both English and Spanish, then “engspa” would be returned.

The main motivation for this protocol is to help support file names in a file system driver. When a
file is opened, a file name needs to be compared to the file names on the disk. In some cases, this
comparison needs to be performed in a case-insensitive manner. In addition, this protocol can be
used to sort files from a directory or to perform a case-insensitive file search.

Advertising