3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Common defines and prototypes for string database management
25 #define LANGUAGE_NAME_STRING_NAME L"$LANGUAGE_NAME"
26 #define PRINTABLE_LANGUAGE_NAME_STRING_NAME L"$PRINTABLE_LANGUAGE_NAME"
42 WCHAR
*StringIdentifier
,
56 #define STRING_FLAGS_REFERENCED 0x0001 // if referenced somewhere
57 #define STRING_FLAGS_UNDEFINED 0x0002 // if we added it for padding purposes
58 #define STRING_FLAGS_INDEX_ASSIGNED 0x0004 // so don't change the index value
59 #define STRING_ID_INVALID 0xFFFF
60 #define STRING_ID_LANGUAGE_NAME 0x0000
61 #define STRING_ID_PRINTABLE_LANGUAGE_NAME 0x0001
64 StringDBAddStringIdentifier (
65 WCHAR
*StringIdentifier
,
72 StringDBReadDatabase (
74 BOOLEAN IgnoreIfNotExist
,
80 StringDBWriteDatabase (
87 StringDBDumpDatabase (
89 CHAR8
*OutputFileName
,
97 WCHAR
*PrintableLanguageName
102 StringDBDumpCStrings (
105 WCHAR_STRING_LIST
*LanguagesOfInterest
,
106 WCHAR_MATCHING_STRING_LIST
*IndirectionList
111 StringDBDumpStringDefines (
118 StringDBSetCurrentLanguage (
124 StringDBSetStringReferenced (
125 CHAR8
*StringIdentifierName
,
126 BOOLEAN IgnoreNotFound
131 StringDBFormatString (
136 #endif // #ifndef _STRING_DB_H_