Lines Matching defs:String
20 Calculate the number of Unicode characters of the incoming Configuration string,
25 @param String String in <MultiConfigRequest> or
33 IN EFI_STRING String
39 // "GUID=" should be the first element of incoming string.
41 ASSERT (String != NULL);
42 ASSERT (StrnCmp (String, L"GUID=", StrLen (L"GUID=")) == 0);
48 TmpPtr = StrStr (String, L"&GUID=");
50 return StrLen (String);
53 return (TmpPtr - String);
63 @param String UEFI configuration string
75 IN EFI_STRING String,
88 if (String == NULL || DevicePathData == NULL) {
95 for (; (*String != 0 && StrnCmp (String, L"PATH=", StrLen (L"PATH=")) != 0); String++);
96 if (*String == 0) {
102 String += StrLen (L"PATH=");
103 if (*String == 0) {
106 PathHdr = String;
110 // or '\0' (end of configuration string) is the UNICODE %02x bytes encoding
113 for (Length = 0; *String != 0 && *String != L'&'; String++, Length++);
168 Converts the unicode character of the string from uppercase to lowercase.
171 @param ConfigString String to be converted
180 EFI_STRING String;
188 for (String = ConfigString, Lower = FALSE; *String != L'\0'; String++) {
189 if (*String == L'=') {
191 } else if (*String == L'&') {
193 } else if (Lower && *String >= L'A' && *String <= L'F') {
194 *String = (CHAR16) (*String - L'A' + L'a');
202 Generate a sub string then output it.
206 @param String A constant string which is the prefix of the to be
207 generated string, e.g. GUID=
212 content of the generated string.
215 UINT8 *; if 2, the buffer contains unicode string for the value of NAME;
218 @param SubStr Points to the output string. It's caller's
225 IN CONST EFI_STRING String,
240 ASSERT (String != NULL && SubStr != NULL);
243 *SubStr = AllocateCopyPool (StrSize (String), String);
251 Length = StrLen (String) + BufferLen * 2 + 1 + 1;
255 StrCpyS (Str, Length, String);
257 StringHeader = Str + StrLen (String);
263 // Convert Buffer to Hex String in reverse order
277 // Convert Unicode String to Config String, e.g. "ABCD" => "0041004200430044"
285 // Convert Buffer to Hex String
307 Retrieve the <ConfigBody> from String then output it.
311 @param String A sub string of a configuration string in
313 @param ConfigBody Points to the output string. It's caller's
323 IN EFI_STRING String,
331 if (String == NULL || ConfigBody == NULL) {
338 if (StrnCmp (String, L"&ALTCFG=", StrLen (L"&ALTCFG=")) == 0) {
342 TmpPtr = StrStr (String, L"GUID=");
345 // It is the last <ConfigResp> of the incoming configuration string.
347 Result = AllocateCopyPool (StrSize (String), String);
356 Length = TmpPtr - String;
360 Result = AllocateCopyPool (Length * sizeof (CHAR16), String);
371 Append a string to a multi-string format.
375 @param MultiString String in <MultiConfigRequest>,
377 input, the buffer length of this string is
380 @param AppendString NULL-terminated Unicode string.
418 // Append the incoming string
433 @param StringPtr String in <BlockConfig> format and points to the
513 This function merges DefaultAltCfgResp string into AltCfgResp string for
516 @param AltCfgResp Pointer to a null-terminated Unicode string in
517 <ConfigAltResp> format. The default value string
519 @param DefaultAltCfgResp Pointer to a null-terminated Unicode string in
521 string may contain more than one ConfigAltResp
522 string for the different varstore buffer.
524 @retval EFI_SUCCESS The merged string returns.
576 // Construct AltConfigHdr string "&<ConfigHdr>&ALTCFG=XXXX\0"
598 // Append the found default value string to the input AltCfgResp
606 // No more default string is found.
637 // Find next AltCfg String
757 Retrieves a pointer to the a Null-terminated ASCII string containing the list
759 string is allocated using AllocatePool(). The caller is responsible for freeing
760 the returned string using FreePool(). The format of the returned string follows
771 @retval Other A pointer to the Null-terminated ASCII string of supported languages.
817 // Retrieve the supported languages string
829 // Return the Null-terminated ASCII string of supported languages
835 Retrieves a string from a string package.
841 @param[in] StringId The identifier of the string to retrieved from the string
844 @retval NULL The string specified by StringId is not present in the string package.
845 @retval Other The string was returned.
857 EFI_STRING String;
872 String = NULL;
904 // Retrieve the size of the string in the string package for the BestLanguage
927 // Allocate a buffer for the return string
929 String = AllocateZeroPool (StringSize);
930 if (String == NULL) {
935 // Retrieve the string from the string package
942 String,
950 FreePool (String);
951 String = NULL;
969 // Return the Null-terminated Unicode string
971 return String;
1106 @param ConfigHdr Request string ConfigHdr. If it is NULL,
1214 // Free alllocated temp string.
1238 Check whether the ConfigRequest string has the request elements.
1242 @param ConfigRequest The input config request string.
1245 @retval FALSE The input string not includes.
1340 @param ConfigHdr Request string ConfigHdr. If it is NULL,
1499 // This question is not in the requested string. Skip it.
1511 // This question is not in the requested string. Skip it.
1556 @param ConfigHdr Request string ConfigHdr. If it is NULL,
1558 @param RequestBlockArray The block array is retrieved from the request string.
2042 // String question is not in IFR Form. This IFR form is not valid.
2092 // No default value for string.
2143 // This question is not in the requested string. Skip it.
2308 parse the configrequest string, get the elements.
2310 @param ConfigRequest The input configrequest string.
2344 // Get the request Block array from the request string
2356 // Skip the OFFSET string
2413 // Skip &VALUE string if &VALUE does exists.
2477 parse the configrequest string, get the elements.
2479 @param ConfigRequest The input config request string.
2508 // Get the request Block array from the request string
2520 // Skip the L"&" string
2585 Generate ConfigRequest string base on the varstore info.
2611 // Append VarStorageData BlockEntry into *Request string
2617 // Then construct them all to return MultiRequest string : ConfigHdr BlockConfig
2649 // No any request block data is found. The request string can't be constructed.
2702 // Set to the got full request string.
2845 Generate ConfigAltResp string base on the varstore info.
2922 // No default value is found. The default string doesn't exist.
2990 // Convert Value to a hex string in "%x" format
2994 DefaultString = InternalGetString(HiiHandle, DefaultValueData->Value.string);
3016 This function gets the full request string and full default value string by
3019 When Request points to NULL string, the request string and default value string
3024 @param Request Pointer to a null-terminated Unicode string in
3028 If it points to NULL, the request string for the first
3030 <MultiConfigRequest> format string and return.
3031 @param AltCfgResp Pointer to a null-terminated Unicode string in
3033 the full default value string retrieved from IFR data
3034 will return. When the pinter is to a string, the
3035 full default value string retrieved from IFR data
3036 will be merged into the input string and return.
3037 When Request points to NULL, the default value string
3039 a <MultiConfigAltResp> format string and return.
3043 string. Points to the string's null terminator if
3046 the beginning of the string if the failure is in
3049 @retval EFI_SUCCESS The Results string is set to the full request string.
3050 And AltCfgResp contains all default value string.
3051 @retval EFI_OUT_OF_RESOURCES Not enough memory for the return string.
3052 @retval EFI_NOT_FOUND The varstore (Guid and Name) in Request string
3104 // 1. Get the request block array by Request String when Request string containts the block array.
3223 // 4. Construct Default Value string in AltResp according to request element.
3233 // 5. Merge string into the input AltCfgResp if the iput *AltCfgResp is not NULL.
3295 // Free the allocated string
3322 This function gets the full request resp string by
3329 @param Request Pointer to a null-terminated Unicode string in
3331 @param RequestResp Pointer to a null-terminated Unicode string in
3334 string. Points to the string's null terminator if
3337 the beginning of the string if the failure is in
3341 @retval EFI_SUCCESS The Results string is set to the full request string.
3342 And AltCfgResp contains all default value string.
3343 @retval EFI_OUT_OF_RESOURCES Not enough memory for the return string.
3406 This function route the full request resp string for efi varstore.
3412 @param RequestResp Pointer to a null-terminated Unicode string in
3414 @param Result Pointer to a null-terminated Unicode string in
3417 @retval EFI_SUCCESS The Results string is set to the full request string.
3418 And AltCfgResp contains all default value string.
3419 @retval EFI_OUT_OF_RESOURCES Not enough memory for the return string.
3487 @param ConfigElements A null-terminated Unicode string in <ConfigRequest> format,
3530 @param ConfigElements A null-terminated Unicode string in <ConfigRequest> format,
3563 Validate the config request string.
3565 @param ConfigRequest A null-terminated Unicode string in <ConfigRequest> format.
3633 @param Request A null-terminated Unicode string in
3636 string. Points to the string's null terminator if
3639 the beginning of the string if the failure is in
3642 @param Results Null-terminated Unicode string in
3644 filled in for the names in the Request string.
3645 String to be allocated by the called function.
3647 @retval EFI_SUCCESS The Results string is filled with the values
3661 before the error or the beginning of the string.
3665 string.
3816 // Validate ConfigRequest String.
3826 // Check whether ConfigRequest contains request string.
3831 // Get the full request string from IFR when HiiPackage is registered to HiiHandle
3977 null-terminated Unicode string.
3981 @param Results Null-terminated Unicode string in
3984 database. String to be allocated by the called
3987 @retval EFI_SUCCESS The Results string is filled with the values
4106 // Get the full request string to get the Current setting again.
4179 @param Configuration A null-terminated Unicode string in
4181 @param Progress A pointer to a string filled in with the offset of
4183 value pair (or the beginning of the string if the
4400 @param ConfigRequest A null-terminated Unicode string in
4404 @param Config Filled-in configuration string. String allocated
4406 successful. It is <ConfigResp> string format.
4407 @param Progress A pointer to a string filled in with the offset of
4409 name/value pair (or the beginning of the string if
4415 string.
4423 @retval EFI_INVALID_PARAMETER Encountered non <BlockName> formatted string.
4585 // Calculate Value and convert it to hex string.
4690 @param ConfigResp A null-terminated Unicode string in <ConfigResp>
4694 ConfigResp string in the block are modified. If
4697 the Configuration string, only the BlockSize
4706 string filled in with the offset of the most
4708 pair (or the beginning of the string if the
4713 terminator at the end of the ConfigResp string.
4892 // The input string is not ConfigResp format, return error.
4928 a larger configuration string.
4932 @param Configuration A null-terminated Unicode string in
4935 routing portion of the ConfigResp string when
4939 routing portion of the ConfigResp string when
4943 routing portion of the ConfigResp string when
4948 routing portion of the ConfigResp string when
4953 the function which contains the retrieved string
5014 // Generate the sub string for later matching.