This patch make sure that Pcd Dynamic database generation tool is able to handle the VariableName of type HexWordArrayType in DynamicPcdBuildDefinitions section in FPD file. The HexWorldArrayType (UINT16 in C concept) is printed directly into the dynamic PCD database.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1329 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2006-08-21 05:53:51 +00:00
parent eeb1cd5af3
commit d73557df24
2 changed files with 84 additions and 38 deletions

View File

@@ -125,30 +125,12 @@ public class DynamicTokenValue {
}
/**
Get the string like L"xxx" for a variable Name.
BUGBUG: In fact, it is not correctly, variable name should be
treated as unicode UINT16 array.
Get the variable Name.
@return String
**/
public String getStringOfVariableName()
throws EntityException {
String str;
int index, num;
int size;
str = "";
size = variableName.size();
for (index = 0; index < size; index++) {
num = Integer.decode(variableName.get(index).toString());
if ((num > 127 ) || (num < 0)) {
throw new EntityException(String.format("The variable name contains more than 0x80 characters; this is not supported at thist time!"));
}
str += (char)num;
}
return str;
public List getStringOfVariableName() {
return variableName;
}
/**