Home
last modified time | relevance | path

Searched refs:NewStr (Results 1 – 13 of 13) sorted by relevance

/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/
DParse.c203 EFI_STRING NewStr; in HandleStringWithEscapeCharForParse() local
214 NewStr = AllocateZeroPool (StrSize (String)); in HandleStringWithEscapeCharForParse()
215 if (NewStr == NULL) { in HandleStringWithEscapeCharForParse()
218 ReturnStr = NewStr; in HandleStringWithEscapeCharForParse()
222 *NewStr = *(StrWalker + 1); in HandleStringWithEscapeCharForParse()
225 *NewStr = *StrWalker; in HandleStringWithEscapeCharForParse()
228 NewStr++; in HandleStringWithEscapeCharForParse()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellCommandLib/
DConsistMapping.c98 CHAR16 *NewStr; in CatPrint() local
110 NewStr = AllocateZeroPool (StringSize); in CatPrint()
115 NewStr = ReallocatePool ( in CatPrint()
121 if (NewStr == NULL) { in CatPrint()
126 Str->Str = NewStr; in CatPrint()
1613 CHAR16 *NewStr; in ShellCommandConsistMappingGenMappingName() local
1670 NewStr = ReallocatePool (Str.Len * sizeof (CHAR16), (Str.Len + 1) * sizeof (CHAR16), Str.Str); in ShellCommandConsistMappingGenMappingName()
1671 if (NewStr == NULL) { in ShellCommandConsistMappingGenMappingName()
1675 NewStr[Str.Len] = CHAR_NULL; in ShellCommandConsistMappingGenMappingName()
1676 return NewStr; in ShellCommandConsistMappingGenMappingName()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiStrGather/
DStringDB.c1952 WCHAR *NewStr; in DuplicateString() local
1957 NewStr = MALLOC ((wcslen (Str) + 1) * sizeof (WCHAR)); in DuplicateString()
1958 if (NewStr == NULL) { in DuplicateString()
1963 wcscpy (NewStr, Str); in DuplicateString()
1964 return NewStr; in DuplicateString()
2006 WCHAR *NewStr; in AsciiToWchar() local
2010 NewStr = (WCHAR *) malloc (Len * sizeof (WCHAR)); in AsciiToWchar()
2011 for (Ptr = NewStr; *Str != 0; Str++, Ptr++) { in AsciiToWchar()
2016 return NewStr; in AsciiToWchar()
2026 CHAR8 *NewStr; in WcharToAscii() local
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/StrGather/
DStringDB.c2456 WCHAR *NewStr; in DuplicateString() local
2461 NewStr = MALLOC ((wcslen (Str) + 1) * sizeof (WCHAR)); in DuplicateString()
2462 if (NewStr == NULL) { in DuplicateString()
2467 wcscpy (NewStr, Str); in DuplicateString()
2468 return NewStr; in DuplicateString()
2478 WCHAR *NewStr; in AsciiToWchar() local
2482 NewStr = (WCHAR *) malloc (Len * sizeof (WCHAR)); in AsciiToWchar()
2483 for (Ptr = NewStr; *Str != 0; Str++, Ptr++) { in AsciiToWchar()
2488 return NewStr; in AsciiToWchar()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/SetupBrowserDxe/
DIfrParse.c686 CHAR16 *NewStr; in InitializeRequestElement() local
748 NewStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in InitializeRequestElement()
749 ASSERT (NewStr != NULL); in InitializeRequestElement()
751 CopyMem (NewStr, FormsetStorage->ConfigRequest, StringSize); in InitializeRequestElement()
754 FormsetStorage->ConfigRequest = NewStr; in InitializeRequestElement()
800 NewStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in InitializeRequestElement()
801 ASSERT (NewStr != NULL); in InitializeRequestElement()
803 CopyMem (NewStr, ConfigInfo->ConfigRequest, StringSize); in InitializeRequestElement()
806 ConfigInfo->ConfigRequest = NewStr; in InitializeRequestElement()
DSetup.c5044 CHAR16 *NewStr; in RemoveElement() local
5049 NewStr = StrStr (Storage->ConfigRequest, RequestElement); in RemoveElement()
5051 if (NewStr == NULL) { in RemoveElement()
5058 DestStr = NewStr; in RemoveElement()
5059 NewStr += StrLen (RequestElement); in RemoveElement()
5060 CopyMem (DestStr, NewStr, StrSize (NewStr)); in RemoveElement()
5220 CHAR16 *NewStr; in AppendConfigRequest() local
5237 NewStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in AppendConfigRequest()
5238 ASSERT (NewStr != NULL); in AppendConfigRequest()
5241 CopyMem (NewStr, *ConfigRequest, StringSize); in AppendConfigRequest()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/
DVfrFormPkg.cpp828 CHAR8 *NewStr; in DeclarePendingQuestion() local
896 NewStr = new CHAR8[strlen (VarStr) + strlen (SName) + 1]; in DeclarePendingQuestion()
897 NewStr[0] = '\0'; in DeclarePendingQuestion()
898 strcpy (NewStr, SName); in DeclarePendingQuestion()
899 strcat (NewStr, VarStr + strlen (FName)); in DeclarePendingQuestion()
900 …ReturnCode = lCVfrVarDataTypeDB.GetDataFieldInfo (NewStr, Info.mInfo.mVarOffset, Info.mVarType, In… in DeclarePendingQuestion()
901 delete[] NewStr; in DeclarePendingQuestion()
DVfrSyntax.g5062 CHAR8 *NewStr;
5071 if ((NewStr = new CHAR8[Len + 1]) == NULL) {
5074 NewStr[0] = '\0';
5076 strcpy (NewStr, *Dest);
5079 strcat (NewStr, Src);
5081 *Dest = NewStr;
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLib/
DDevicePathToText.c938 CHAR16 *NewStr; in DevPathToTextUsbWWID() local
949 NewStr = AllocateCopyPool ((Length + 1) * sizeof (CHAR16), SerialNumberStr); in DevPathToTextUsbWWID()
950 ASSERT (NewStr != NULL); in DevPathToTextUsbWWID()
951 NewStr [Length] = 0; in DevPathToTextUsbWWID()
952 SerialNumberStr = NewStr; in DevPathToTextUsbWWID()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/
DGenMake.py533 NewStr = []
538 NewStr.append(Str)
540 NewRespStr = ' '.join(NewStr)
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/
DVolInfo.c1746 CHAR8 *NewStr; in ParseSection() local
1764 NewStr = strrchr (StrLine, '='); in ParseSection()
1765 printf (" SHA1: %s\n", NewStr + 1); in ParseSection()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
DMisc.py1423 NewStr = ''
1435 NewStr += '-'
1437 NewStr += ch
1441 Pos = NewStr.find(TAB_VALUE_SPLIT, StartPos)
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/
DVfrSyntax.g3147 INT8 *NewStr;
3156 if ((NewStr = new INT8[Len + 1]) == NULL) {
3159 NewStr[0] = '\0';
3161 strcpy (NewStr, *Dest);
3163 strcat (NewStr, Src);
3165 *Dest = NewStr;