diff options
author | Andrew C. Oliver <acoliver@apache.org> | 2002-05-18 15:54:29 +0000 |
---|---|---|
committer | Andrew C. Oliver <acoliver@apache.org> | 2002-05-18 15:54:29 +0000 |
commit | b29967698fe4d7157f00092a29a15db2de82dc55 (patch) | |
tree | 430ce803151692b7c03176535f21b88e8d351158 /src/records | |
parent | 0b6b261c00e55eefbf6cac63c40ae8b8e8167ef8 (diff) | |
download | poi-b29967698fe4d7157f00092a29a15db2de82dc55.tar.gz poi-b29967698fe4d7157f00092a29a15db2de82dc55.zip |
fixes for series text
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352624 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/records')
-rw-r--r-- | src/records/definitions/series_text_record.xml | 6 | ||||
-rw-r--r-- | src/records/styles/record.xsl | 2 | ||||
-rw-r--r-- | src/records/styles/record_test.xsl | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/records/definitions/series_text_record.xml b/src/records/definitions/series_text_record.xml index ae5bd94a96..ed527768ef 100644 --- a/src/records/definitions/series_text_record.xml +++ b/src/records/definitions/series_text_record.xml @@ -10,10 +10,10 @@ <field type="int" size="1" name="text length"> <testresult value="0x0C"/> </field> - <field type="int" size="2" name="undocumented"> - <testresult value="0x5601"/> + <field type="int" size="1" name="undocumented" description="probably highbyte flag to tell whether string is little or big endian"> + <testresult value="0x01"/> </field> - <field type="string" size="(field_2_textLength * 2)" name="text"> + <field type="hbstring" size="(field_2_textLength *2)" name="text"> <testresult value="Value Number"/> </field> </fields> diff --git a/src/records/styles/record.xsl b/src/records/styles/record.xsl index c29df3eb5d..1f62a6537e 100644 --- a/src/records/styles/record.xsl +++ b/src/records/styles/record.xsl @@ -266,7 +266,7 @@ public class <xsl:value-of select="@name"/>Record </xsl:template> <xsl:template match="field" mode="tostring"> - buffer.append(" .<xsl:value-of select="recutil:getFieldName(@name,20)"/> = ")<xsl:choose><xsl:when test="@type != 'string' and @type != 'float' and @size != 'varword'"> + buffer.append(" .<xsl:value-of select="recutil:getFieldName(@name,20)"/> = ")<xsl:choose><xsl:when test="@type != 'string' and @type != 'hbstring' and @type != 'float' and @size != 'varword'"> .append("0x") .append(HexDump.toHex((<xsl:value-of select="recutil:getType(@size,@type,00)"/>)get<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>()))</xsl:when></xsl:choose> .append(" (").append(get<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>()).append(" )\n"); diff --git a/src/records/styles/record_test.xsl b/src/records/styles/record_test.xsl index 3fa969061c..1f53562ef8 100644 --- a/src/records/styles/record_test.xsl +++ b/src/records/styles/record_test.xsl @@ -90,7 +90,7 @@ public class Test<xsl:value-of select="@name"/>Record <xsl:value-of select="@name"/>Record record = new <xsl:value-of select="@name"/>Record((short)<xsl:value-of select="@id"/>, (short)data.length, data); <xsl:for-each select="//fields/field"> - <xsl:choose><xsl:when test="@type='string'"> + <xsl:choose><xsl:when test="@type='string' or @type='hbstring'"> assertEquals( "<xsl:value-of select="./testresult/@value"/>", record.get<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>()); </xsl:when><xsl:when test="@size='1'"> assertEquals( (byte)<xsl:value-of select="./testresult/@value"/>, record.get<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>()); @@ -115,7 +115,7 @@ public class Test<xsl:value-of select="@name"/>Record <xsl:for-each select="//fields/field"> - <xsl:choose><xsl:when test="@type='string'"> + <xsl:choose><xsl:when test="@type='string' or @type='hbstring'"> record.set<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>( "<xsl:value-of select="./testresult/@value"/>" ); </xsl:when><xsl:when test="@size='1'"> record.set<xsl:value-of select="recutil:getFieldName1stCap(@name,0)"/>( (byte)<xsl:value-of select="./testresult/@value"/> ); |