File formats
Archive files (tar.gz and zip)
- OBJECTTYPE Archive
- RECORD FUNCTION CloseZlibCompressor(INTEGER compressor)
Close a zlib compressor
- MACRO CloseZlibDecompressor(INTEGER compressor)
Close a decompressing stream
- OBJECT FUNCTION CreateNewArchive(STRING type, RECORD options)
Create a new archive file object
- INTEGER FUNCTION CreateZlibCompressor(INTEGER outstream, STRING format, INTEGER compressionlevel)
Create a zlib compressor (using deflate)
- RECORD ARRAY FUNCTION FilterMacOSForksFromArchive(RECORD ARRAY infiles)
Removes all entries from a list of files that contain MacOS forks
- BLOB FUNCTION MakeZlibCompressedFile(BLOB infile, STRING format, INTEGER compressionlevel)
Compress a blob using zlib deflate
- BLOB FUNCTION MakeZlibDecompressedFile(BLOB infile, STRING format)
Decompress a blob that was compressed with zlib deflate
- INTEGER FUNCTION OpenBlobAsDecompressingStream(BLOB indata, STRING fileformat)
Open and decompress a blob
- OBJECT FUNCTION OpenExistingArchive(BLOB archive, RECORD options)
Create an archive object
- RECORD ARRAY FUNCTION ReadTarFileFromStream(INTEGER tarstream)
Reads the contents of a tar file from a file stream
- RECORD ARRAY FUNCTION UnpackArchive(BLOB data)
Unpacks an archive
Bibtex
- OBJECTTYPE BibTexParser
BibTex document parser
- OBJECTTYPE BiBTeXTokenizer
Tokenizer for BibTeX
- STRING FUNCTION GetHumanReadableErrors(RECORD outputrec, STRING file)
Make a readable string describing BibTex errors
- RECORD FUNCTION ParseBiBTeX(STRING bibtex)
Parses a BibTex file
- RECORD FUNCTION ParseBiBTeXBlob(BLOB bibtex)
Parses a BibTex file
- RECORD FUNCTION ValidateBiBTeX(STRING bibtex)
Validates a BibTex file
- RECORD FUNCTION ValidateBiBTeXBlob(BLOB bibtex)
Validates a BibTex file
- RECORD FUNCTION ValidateBiBTeXEntry(RECORD bibtex)
Validates a BibTex entitry
CSS (Cascading style sheets)
- OBJECTTYPE CSSConditionRule
CSSConditionRule: abstract class. See: https://drafts.csswg.org/css-conditional-3/#cssconditionrule
- OBJECTTYPE CSSGroupingRule
- OBJECTTYPE CSSImportRule
describs an @import rule. Spec: https://www.w3.org/TR/2013/WD-cssom-20131205/#the-cssimportrule-interface
- OBJECTTYPE CSSMediaRule
- OBJECTTYPE CSSRule
- OBJECTTYPE CSSRuleList
Contains a list of rules
Spec: https://www.w3.org/TR/2013/WD-cssom-20131205/#the-cssrulelist-interface
- OBJECTTYPE CSSStyleDeclaration
Contains a single CSS style declaration,
Spec: https://www.w3.org/TR/2013/WD-cssom-20131205/#the-cssstyledeclaration-interface
- OBJECTTYPE CSSStyleRule
The CSSStyleRule interface represents a style rule. Spec: https://www.w3.org/TR/cssom/#the-cssstylerule-interface
- OBJECTTYPE CSSStyleSheet
- OBJECTTYPE CSSUnknownAtRule
- OBJECT FUNCTION MakeCSSStyleSheet(BLOB stylesheet, RECORD options)
- OBJECTTYPE MediaList
- OBJECTTYPE MediaQuery
- OBJECT FUNCTION ParseInlineStyleAttribute(STRING style)
Parses the content of an inline style attribute
- OBJECTTYPE StyleSheet
CSV im/export
- OBJECTTYPE CSVColumnFileWriter
- STRING FUNCTION EncodeExcelCSV(STRING unquoted)
Encode excel CSV value
- RECORD ARRAY FUNCTION ParseCSVRows(BLOB data, RECORD options)
Get the raw rows of an (Excel-compatible) CSV/TSV file
- RECORD ARRAY FUNCTION TokenArrayParser(STRING ARRAY cellnames, RECORD ARRAY recarray)
Creates a record array out of a record array with just tokens
HTML
- BLOB FUNCTION ConvertHtmlToPlainText(BLOB htmldoc, RECORD options)
Convert a HTML blob to plain text
- OBJECTTYPE HtmlRewriter
An HTML parser
- OBJECTTYPE HtmlRewriterContext
- MACRO RewriteHTMLDocumentTo(INTEGER outputid, BLOB htmldoc, RECORD callbacks, STRING encoding)
Smart HTML rewriter
iCalendar event encoding/decoding functions
- STRING FUNCTION EncodeICalCalendar(RECORD ARRAY events, RECORD calendarsettings)
Creates an ICal calendar file for events
- STRING FUNCTION EncodeICalEvent(RECORD event)
Encodes a single ICal event
- STRING FUNCTION GenerateICalUID()
Generates a new UID for use in ICal
- RECORD FUNCTION GetWrappedIcalCalendar(STRING filename, RECORD ARRAY events, RECORD calendarsettings)
Creates an ICal calendar file for events, wrapped as a file record
- RECORD FUNCTION MakeDefaultICalEvent()
Returns a default ICal event
MarkDown
- RECORD FUNCTION ParseMarkDown(STRING text, RECORD options)
Parses a MarkDown document, returns the parsed document tree
- STRING FUNCTION RenderMarkdownToHTML(RECORD tree, RECORD options)
Renders a parsed MarkDown document tree to HTML
- STRING FUNCTION RenderMarkdownToText(RECORD tree, RECORD options)
Renders a parsed MarkDown document tree to text
OOXML (Office 2007+) file support
- OBJECTTYPE ExcelDoc
- OBJECTTYPE ExcelSheet
- RECORD FUNCTION GenerateXLSXFile(RECORD options)
Generate a XLSX file
- RECORD ARRAY FUNCTION GetOOXMLSpreadsheetRows(BLOB xlsxdoc, RECORD options)
Export the first sheet of an Excel (XLSX) file
- OBJECT FUNCTION MakeNewOOXMLSpreadSheetFile()
- OBJECT FUNCTION MakeOOXMLColumnReader(BLOB xlsdoc, RECORD ARRAY cols)
- OBJECT FUNCTION OpenOOXMLSpreadSheetFile(BLOB xlsdoc)
- OBJECTTYPE XLSXColumnFileWriter
PKCS files
- RECORD FUNCTION CheckPKCSSignature(RECORD decoded, RECORD options)
Checks signatures on decoded PKCS stuff (certificates and certificate requests)
- RECORD FUNCTION DecodePEMFile(STRING pemdata)
- STRING FUNCTION EncodePEMFileFromRawSource(RECORD pemdata)
- STRING FUNCTION EncodeRawPEMFile(STRING type, STRING rawdata)
- BOOLEAN FUNCTION IsCertificateForHostname(RECORD cert, STRING hostname)
Returns whether a decoded certificate is valid for a certain hostname, also considering wildcards