Skip to content

Commit

Permalink
Simplify keeping first row XML for later type and format analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMansour committed Feb 9, 2022
1 parent 48af8f4 commit 5ba8cb3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
9 changes: 3 additions & 6 deletions APLSource/Main/GetColumnFormatCodes.aplf
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
GetColumnFormatCodes{
wi.WorkbookInfo
hwi.HeaderRows
n(2*19).FirstBlock
p{(+\'<row ')}n.FirstBlock
hp:0
m{([;1],'c')}⎕XML hp
0=.FirstRow:0
m{([;1],'c')}.FirstRow
cam GetAttribute'r'
chca~¨⎕D
b{()=}ch
chb/ch
s t(bm)GetAttribute¨'st'
ci¯1+26{{(+/)×}27}1+⎕Ach
wi.WorkbookInfo
cwi.StyleFormatCodeID
fc(c,,'0')[(¨c)s]
jwi.FormatCodeIDfc
Expand Down
2 changes: 1 addition & 1 deletion APLSource/Main/GetSheetData.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
p.Filez OpenZipFile f
p.BlockSize.BlockSize
p.BufferCreateBuffer p.BlockSize
p.FirstRow
p.Fragment''
p.Blocks0
p.EndOfRows0
p.(Data Rows Columns Header)
_ProcessBlocks p
_Dispose¨z p.File
p.UniqueColumns{[]}p.Columns
0=p.Blocks:p
_GetColumnFormatCodes p
1=p.Blocks:p
p.Datap AssembleColumn¨p.UniqueColumns
Expand Down
1 change: 1 addition & 0 deletions APLSource/Main/ProcessBlock.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
d[j]v Scatter point
p.Blocks>1:uc(¨d)
hwi.HeaderRows
p.FirstRow(h=¯1++\0=m[;0])m
p.Headerhd
uc(¨hd) Column Indices , Inverted Data
}
2 changes: 1 addition & 1 deletion APLSource/Main/ReadRowBlock.aplf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ReadRowBlock{
.EndOfRows:''
0=.Blocks:.FirstBlockReadRowBlockFirst
0=.Blocks:ReadRowBlockFirst
TrimRowBlock ReadBlock
}

0 comments on commit 5ba8cb3

Please sign in to comment.