EFI IFR FIND

From PhoenixWiki

Jump to: navigation, search

Return the index of a found sub-string within a string.

Prototype

#define EFI_IFR_FIND_OP 0x4c
typedef struct _EFI_IFR_FIND {
  EFI_IFR_OP_HEADER Header;
  UINT8             Format;
} EFI_IFR_FIND;

Members

Member Description
Header Standard opcode header, where OpCode is EFI_IFR_FIND_OP.
Format The following flags govern the matching criteria:
#define EFI_IFR_FF_CASE_SENSITIVE   0x00
#define EFI_IFR_FF_CASE_INSENSITIVE 0x01

Description

Pop three expressions from the expression stack. The first expression popped is the third expression and the second expression popped is the second expression and the last expression popped is the first expression.

If the first or second expressions cannot be evaluated as a string, push Undefined. If the third expression cannot be evaluated as an unsigned integer, push Undefined. The first expression is the string to search. The second expression is the string to compare with. The third expression is the zero-based index of the search. If the string is found, push the zero-based index of the found string. Otherwise, if the string is not found or the third expression specifies a value which is greater-than or equal to the length of the first expression’s string, push 0xFFFFFFFFFFFFFFFF.


Copyright (C) 2008 Phoenix Technologies Ltd. All Rights Reserved. Portions copyright (C) 2008 UEFI Forum, Inc. Used with permission

Personal tools