EFI IFR TOKEN

From PhoenixWiki

Jump to: navigation, search

Extract a delimited string from a string.

Prototype

#define EFI_IFR_TOKEN_OP 0x4d
typedef struct _EFI_IFR_TOKEN {
  EFI_IFR_OP_HEADER Header;
} EFI_IFR_TOKEN;

Members

Member Description
Header Standard opcode header, where OpCode is EFI_IFR_TOKEN_OP.

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. The second expression is a string, where each character is a valid delimiter. The third expression is the zero-based index. Push the nth delimited sub-string on to the expression stack (0 = left of the first delimiter). The end of the string always acts a the final delimiter. The no such string exists, an empty string is pushed.


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

Personal tools