]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/BdsDxe/Language.h
Retire HiiLibGetNextLanguage() API from HII Library class.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Language.h
CommitLineData
5c08e117 1/** @file\r
2 Language setting\r
3\r
4Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _LANGUAGE_H_\r
16#define _LANGUAGE_H_\r
17\r
18#include "String.h"\r
19\r
ad5a96ab 20/**\r
21 Convert language code from RFC3066 to ISO639-2.\r
22\r
23 @param LanguageRfc3066 RFC3066 language code.\r
24 @param LanguageIso639 ISO639-2 language code.\r
25\r
26 @retval EFI_SUCCESS Language code converted.\r
27 @retval EFI_NOT_FOUND Language code not found.\r
28\r
29**/\r
30EFI_STATUS\r
31EFIAPI\r
32ConvertRfc3066LanguageToIso639Language (\r
33 IN CHAR8 *LanguageRfc3066,\r
34 OUT CHAR8 *LanguageIso639\r
35 );\r
36\r
0f268521 37/**\r
38 Get next language from language code list (with separator ';').\r
39\r
40 If LangCode is NULL, then ASSERT.\r
41 If Lang is NULL, then ASSERT.\r
42\r
43 @param LangCode On input: point to first language in the list. On\r
44 output: point to next language in the list, or\r
45 NULL if no more language in the list.\r
46 @param Lang The first language in the list.\r
47\r
48**/\r
49VOID\r
50EFIAPI\r
51GetNextLanguage (\r
52 IN OUT CHAR8 **LangCode,\r
53 OUT CHAR8 *Lang\r
54 );\r
55\r
5c08e117 56/**\r
57 Determine the current language that will be used\r
58 based on language related EFI Variables.\r
59\r
60 @param LangCodesSettingRequired If required to set LangCode variable\r
61\r
62**/\r
63VOID\r
64InitializeLanguage (\r
65 BOOLEAN LangCodesSettingRequired\r
66 );\r
67\r
68#endif // _LANGUAGE_H_\r