3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
4 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"
40 WCHAR
*StringIdentifier
,
52 #define STRING_FLAGS_REFERENCED 0x0001 // if referenced somewhere
53 #define STRING_FLAGS_UNDEFINED 0x0002 // if we added it for padding purposes
54 #define STRING_FLAGS_INDEX_ASSIGNED 0x0004 // so don't change the index value
55 #define STRING_ID_INVALID 0xFFFF
56 #define STRING_ID_LANGUAGE_NAME 0x0000
57 #define STRING_ID_PRINTABLE_LANGUAGE_NAME 0x0001
60 StringDBAddStringIdentifier (
61 WCHAR
*StringIdentifier
,
67 StringDBReadDatabase (
69 BOOLEAN IgnoreIfNotExist
,
74 StringDBWriteDatabase (
80 StringDBDumpDatabase (
89 WCHAR
*PrintableLanguageName
93 StringDBDumpCStrings (
96 WCHAR_STRING_LIST
*LanguagesOfInterest
,
97 WCHAR_MATCHING_STRING_LIST
*IndirectionList
101 StringDBDumpStringDefines (
107 StringDBSetCurrentLanguage (
112 StringDBSetStringReferenced (
113 INT8
*StringIdentifierName
,
114 BOOLEAN IgnoreNotFound
118 StringDBFormatString (
122 #endif // #ifndef _STRING_DB_H_