TianoCore EDK2 master
Loading...
Searching...
No Matches
EdbSupportString.c File Reference
#include "Edb.h"

Go to the source code of this file.

Functions

UINTN EFIAPI Xtoi (CHAR16 *Str)
 
UINT64 EFIAPI LXtoi (CHAR16 *Str)
 
UINTN EFIAPI Atoi (CHAR16 *Str)
 
UINTN EFIAPI AsciiXtoi (CHAR8 *Str)
 
UINTN EFIAPI AsciiAtoi (CHAR8 *Str)
 
INTN EFIAPI StrCmpUnicodeAndAscii (IN CHAR16 *String, IN CHAR8 *String2)
 
INTN EFIAPI StriCmp (IN CHAR16 *String, IN CHAR16 *String2)
 
INTN EFIAPI StriCmpUnicodeAndAscii (IN CHAR16 *String, IN CHAR8 *String2)
 
BOOLEAN EFIAPI StrEndWith (IN CHAR16 *Str, IN CHAR16 *SubStr)
 
CHAR16 *EFIAPI StrDuplicate (IN CHAR16 *Src)
 
UINTN EFIAPI StrSpn (IN CHAR16 *String, IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrBrk (IN CHAR16 *String, IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrTokenLine (IN CHAR16 *String OPTIONAL, IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrTokenField (IN CHAR16 *String OPTIONAL, IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrGetNewTokenLine (IN CHAR16 *String, IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrGetNextTokenLine (IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrGetNewTokenField (IN CHAR16 *String, IN CHAR16 *CharSet)
 
CHAR16 *EFIAPI StrGetNextTokenField (IN CHAR16 *CharSet)
 
VOID EFIAPI PatchForStrTokenAfter (IN CHAR16 *Buffer, IN CHAR16 Patch)
 
VOID EFIAPI PatchForStrTokenBefore (IN CHAR16 *Buffer, IN CHAR16 Patch)
 
UINTN EFIAPI AsciiStrSpn (IN CHAR8 *String, IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrBrk (IN CHAR8 *String, IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrTokenLine (IN CHAR8 *String OPTIONAL, IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrTokenField (IN CHAR8 *String OPTIONAL, IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrGetNewTokenLine (IN CHAR8 *String, IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrGetNextTokenLine (IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrGetNewTokenField (IN CHAR8 *String, IN CHAR8 *CharSet)
 
CHAR8 *EFIAPI AsciiStrGetNextTokenField (IN CHAR8 *CharSet)
 
VOID EFIAPI PatchForAsciiStrTokenAfter (IN CHAR8 *Buffer, IN CHAR8 Patch)
 
VOID EFIAPI PatchForAsciiStrTokenBefore (IN CHAR8 *Buffer, IN CHAR8 Patch)
 

Variables

CHAR16 * mLineBuffer = NULL
 
CHAR16 * mFieldBuffer = NULL
 
CHAR8 * mAsciiLineBuffer = NULL
 
CHAR8 * mAsciiFieldBuffer = NULL
 

Detailed Description

Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file EdbSupportString.c.

Function Documentation

◆ AsciiAtoi()

UINTN EFIAPI AsciiAtoi ( CHAR8 *  Str)

Convert hex string to uint.

Parameters
Str- The string

Definition at line 273 of file EdbSupportString.c.

◆ AsciiStrBrk()

CHAR8 *EFIAPI AsciiStrBrk ( IN CHAR8 *  String,
IN CHAR8 *  CharSet 
)

Searches a string for the first occurrence of a character contained in a specified buffer.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 799 of file EdbSupportString.c.

◆ AsciiStrGetNewTokenField()

CHAR8 *EFIAPI AsciiStrGetNewTokenField ( IN CHAR8 *  String,
IN CHAR8 *  CharSet 
)

Find the next token after one specificed characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 939 of file EdbSupportString.c.

◆ AsciiStrGetNewTokenLine()

CHAR8 *EFIAPI AsciiStrGetNewTokenLine ( IN CHAR8 *  String,
IN CHAR8 *  CharSet 
)

Find the next token after one or more specified characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 905 of file EdbSupportString.c.

◆ AsciiStrGetNextTokenField()

CHAR8 *EFIAPI AsciiStrGetNextTokenField ( IN CHAR8 *  CharSet)

Find the next token after one specificed characters.

Parameters
CharSetPoint to the string to be found.

Definition at line 956 of file EdbSupportString.c.

◆ AsciiStrGetNextTokenLine()

CHAR8 *EFIAPI AsciiStrGetNextTokenLine ( IN CHAR8 *  CharSet)

Find the next token after one or more specified characters.

Parameters
CharSetPoint to the string to be found.

Definition at line 922 of file EdbSupportString.c.

◆ AsciiStrSpn()

UINTN EFIAPI AsciiStrSpn ( IN CHAR8 *  String,
IN CHAR8 *  CharSet 
)

Find the first substring.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 761 of file EdbSupportString.c.

◆ AsciiStrTokenField()

CHAR8 *EFIAPI AsciiStrTokenField ( IN CHAR8 *String  OPTIONAL,
IN CHAR8 *  CharSet 
)

Find the next token after one specificed characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 867 of file EdbSupportString.c.

◆ AsciiStrTokenLine()

CHAR8 *EFIAPI AsciiStrTokenLine ( IN CHAR8 *String  OPTIONAL,
IN CHAR8 *  CharSet 
)

Find the next token after one or more specified characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 828 of file EdbSupportString.c.

◆ AsciiXtoi()

UINTN EFIAPI AsciiXtoi ( CHAR8 *  Str)

Convert hex string to uint.

Parameters
Str- The string

Definition at line 206 of file EdbSupportString.c.

◆ Atoi()

UINTN EFIAPI Atoi ( CHAR16 *  Str)

Convert hex string to uint.

Parameters
Str- The string

Definition at line 155 of file EdbSupportString.c.

◆ LXtoi()

UINT64 EFIAPI LXtoi ( CHAR16 *  Str)

Convert hex string to uint.

Parameters
Str- The string

Definition at line 87 of file EdbSupportString.c.

◆ PatchForAsciiStrTokenAfter()

VOID EFIAPI PatchForAsciiStrTokenAfter ( IN CHAR8 *  Buffer,
IN CHAR8  Patch 
)

Patch a character to the end of a string.

Parameters
BufferThe string to be patched.
PatchThe patch character.

Definition at line 973 of file EdbSupportString.c.

◆ PatchForAsciiStrTokenBefore()

VOID EFIAPI PatchForAsciiStrTokenBefore ( IN CHAR8 *  Buffer,
IN CHAR8  Patch 
)

Patch a character at the beginning of a string.

Parameters
BufferThe string to be patched.
PatchThe patch character.

Definition at line 1011 of file EdbSupportString.c.

◆ PatchForStrTokenAfter()

VOID EFIAPI PatchForStrTokenAfter ( IN CHAR16 *  Buffer,
IN CHAR16  Patch 
)

Patch a character to the end of a string.

Parameters
BufferThe string to be patched.
PatchThe patch character.

Definition at line 687 of file EdbSupportString.c.

◆ PatchForStrTokenBefore()

VOID EFIAPI PatchForStrTokenBefore ( IN CHAR16 *  Buffer,
IN CHAR16  Patch 
)

Patch a character at the beginning of a string.

Parameters
BufferThe string to be patched.
PatchThe patch character.

Definition at line 725 of file EdbSupportString.c.

◆ StrBrk()

CHAR16 *EFIAPI StrBrk ( IN CHAR16 *  String,
IN CHAR16 *  CharSet 
)

Searches a string for the first occurrence of a character contained in a specified buffer.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 513 of file EdbSupportString.c.

◆ StrCmpUnicodeAndAscii()

INTN EFIAPI StrCmpUnicodeAndAscii ( IN CHAR16 *  String,
IN CHAR8 *  String2 
)

Compare the Unicode and Ascii string pointed by String to the string pointed by String2.

Parameters
String- Unicode String to process
String2- Ascii string to process
Returns
Return a positive integer if String is lexicall greater than String2; Zero if the two strings are identical; and a negative interger if String is lexically less than String2.

Definition at line 329 of file EdbSupportString.c.

◆ StrDuplicate()

CHAR16 *EFIAPI StrDuplicate ( IN CHAR16 *  Src)

Duplicate a string.

Parameters
SrcThe string to be duplicated.

Definition at line 445 of file EdbSupportString.c.

◆ StrEndWith()

BOOLEAN EFIAPI StrEndWith ( IN CHAR16 *  Str,
IN CHAR16 *  SubStr 
)

Verify if the string is end with the sub string.

Parameters
Str- The string where to search the sub string
SubStr- The substring.

Definition at line 414 of file EdbSupportString.c.

◆ StrGetNewTokenField()

CHAR16 *EFIAPI StrGetNewTokenField ( IN CHAR16 *  String,
IN CHAR16 *  CharSet 
)

Find the next token after one specificed characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 653 of file EdbSupportString.c.

◆ StrGetNewTokenLine()

CHAR16 *EFIAPI StrGetNewTokenLine ( IN CHAR16 *  String,
IN CHAR16 *  CharSet 
)

Find the next token after one or more specified characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 619 of file EdbSupportString.c.

◆ StrGetNextTokenField()

CHAR16 *EFIAPI StrGetNextTokenField ( IN CHAR16 *  CharSet)

Find the next token after one specificed characters.

Parameters
CharSetPoint to the string to be found.

Definition at line 670 of file EdbSupportString.c.

◆ StrGetNextTokenLine()

CHAR16 *EFIAPI StrGetNextTokenLine ( IN CHAR16 *  CharSet)

Find the next token after one or more specified characters.

Parameters
CharSetPoint to the string to be found.

Definition at line 636 of file EdbSupportString.c.

◆ StriCmp()

INTN EFIAPI StriCmp ( IN CHAR16 *  String,
IN CHAR16 *  String2 
)

Compare the Unicode string pointed by String to the string pointed by String2.

Parameters
String- Unicode String to process
String2- Unicode string to process
Returns
Return a positive integer if String is lexically greater than String2; Zero if the two strings are identical; and a negative integer if String is lexically less than String2.

Definition at line 360 of file EdbSupportString.c.

◆ StriCmpUnicodeAndAscii()

INTN EFIAPI StriCmpUnicodeAndAscii ( IN CHAR16 *  String,
IN CHAR8 *  String2 
)

Compare the Unicode and Ascii string pointed by String to the string pointed by String2.

Parameters
String- Unicode String to process
String2- Ascii string to process
Returns
Return a positive integer if String is lexically greater than String2; Zero if the two strings are identical; and a negative integer if String is lexically less than String2.

Definition at line 389 of file EdbSupportString.c.

◆ StrSpn()

UINTN EFIAPI StrSpn ( IN CHAR16 *  String,
IN CHAR16 *  CharSet 
)

Find the first substring.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 474 of file EdbSupportString.c.

◆ StrTokenField()

CHAR16 *EFIAPI StrTokenField ( IN CHAR16 *String  OPTIONAL,
IN CHAR16 *  CharSet 
)

Find the next token after one specificed characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 581 of file EdbSupportString.c.

◆ StrTokenLine()

CHAR16 *EFIAPI StrTokenLine ( IN CHAR16 *String  OPTIONAL,
IN CHAR16 *  CharSet 
)

Find the next token after one or more specified characters.

Parameters
StringPoint to the string where to find the substring.
CharSetPoint to the string to be found.

Definition at line 542 of file EdbSupportString.c.

◆ Xtoi()

UINTN EFIAPI Xtoi ( CHAR16 *  Str)

Convert hex string to uint.

Parameters
Str- The string

Definition at line 20 of file EdbSupportString.c.

Variable Documentation

◆ mAsciiFieldBuffer

CHAR8* mAsciiFieldBuffer = NULL

Definition at line 749 of file EdbSupportString.c.

◆ mAsciiLineBuffer

CHAR8* mAsciiLineBuffer = NULL

Definition at line 748 of file EdbSupportString.c.

◆ mFieldBuffer

CHAR16* mFieldBuffer = NULL

Definition at line 462 of file EdbSupportString.c.

◆ mLineBuffer

CHAR16* mLineBuffer = NULL

Definition at line 461 of file EdbSupportString.c.