TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiShellLib.h File Reference

Go to the source code of this file.

Data Structures

struct  FILE_HANDLE_FUNCTION_MAP
 

Functions

BOOLEAN InternalShellIsHexOrDecimalNumber (IN CONST CHAR16 *String, IN CONST BOOLEAN ForceHex, IN CONST BOOLEAN StopAtSpace, IN CONST BOOLEAN TimeNumbers)
 
EFI_STATUS InternalShellStripQuotes (IN CONST CHAR16 *OriginalString, OUT CHAR16 **CleanString)
 

Detailed Description

Provides interface to shell functionality for shell commands and applications.

(C) Copyright 2016 Hewlett Packard Enterprise Development LP
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UefiShellLib.h.

Function Documentation

◆ InternalShellIsHexOrDecimalNumber()

BOOLEAN InternalShellIsHexOrDecimalNumber ( IN CONST CHAR16 *  String,
IN CONST BOOLEAN  ForceHex,
IN CONST BOOLEAN  StopAtSpace,
IN CONST BOOLEAN  TimeNumbers 
)

Function to determin if an entire string is a valid number.

If Hex it must be preceeded with a 0x or has ForceHex, set TRUE.

Parameters
[in]StringThe string to evaluate.
[in]ForceHexTRUE - always assume hex.
[in]StopAtSpaceTRUE to halt upon finding a space, FALSE to keep going.
[in]TimeNumbersTRUE to allow numbers with ":", FALSE otherwise.
Return values
TRUEIt is all numeric (dec/hex) characters.
FALSEThere is a non-numeric character.

Definition at line 3844 of file UefiShellLib.c.

◆ InternalShellStripQuotes()

EFI_STATUS InternalShellStripQuotes ( IN CONST CHAR16 *  OriginalString,
OUT CHAR16 **  CleanString 
)

Cleans off all the quotes in the string.

Parameters
[in]OriginalStringpointer to the string to be cleaned.
[out]CleanStringThe new string with all quotes removed. Memory allocated in the function and free by caller.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4572 of file UefiShellLib.c.