Skip to main content

Crate blackline_core

Crate blackline_core 

Source
Expand description

§blackline-core

Shared foundations for the blackline Office toolkit:

  • package — in-memory OPC (ZIP) packages: parts, lossless untouched bytes, save / extract / rebuild from a directory.
  • xml — a small XML DOM tuned for OOXML editing.
  • formula — query layer: RFC 5261 / XPath-subset selectors and formulas (count(//ins), text(//p[0])) evaluated against XmlNode.
  • patch — RFC 5261 add / replace / remove, compiled to TreeOp.
  • update — XQuery Update verbs, compiled to TreeOp.
  • tree — path-addressed XML mutations (TreeOp) that every higher layer compiles down to.
  • rels / ctypes — relationships and [Content_Types].xml.
  • diff / textutil — tokenization, sentence splits, LCS.
  • validate — structured package health checks.

Re-exports§

pub use ctypes::ContentTypes;
pub use diff::diff;
pub use diff::diff_minimal;
pub use diff::mark;
pub use diff::mark_minimal;
pub use diff::minimize_hunks;
pub use diff::DiffHunk;
pub use diff::Granularity;
pub use error::CoreError;
pub use formula::eval_str;
pub use formula::select_str;
pub use formula::Formula;
pub use formula::Match as FormulaMatch;
pub use formula::Selector;
pub use formula::Value as FormulaValue;
pub use package::Package;
pub use patch::parse_ops as parse_patch_ops;
pub use patch::PatchOp;
pub use rels::Relationship;
pub use rels::Relationships;
pub use tree::NodePath;
pub use tree::TreeOp;
pub use tree::TreeOpReport;
pub use update::parse_ops as parse_update_ops;
pub use update::UpdateOp;
pub use validate::check;
pub use validate::HealthReport;
pub use xml::XmlDocument;
pub use xml::XmlNode;

Modules§

ctypes
[Content_Types].xml — the OPC content-type map.
diff
Token-level LCS diff. Used by tracked replacements and two-document redlines.
error
Shared error type for package-level operations.
formula
XML formulas: restricted XPath selectors plus a small function language.
ns
Office Open XML namespace URIs and relationship types.
opc
Disk-oriented unpack / pack helpers built on Package.
package
In-memory OPC package: a ZIP of named parts plus helpers for relationships and content types.
patch
RFC 5261 XML Patch — compile add / replace / remove to TreeOp.
rels
OPC relationships (.rels parts).
textutil
Text primitives shared by search and the redline / tracked-change engines.
time
UTC timestamps without a datetime crate.
tree
Path-addressed XML tree mutations.
update
XQuery Update Facility verbs, compiled to TreeOp.
validate
Structured OOXML package health checks. No printing — callers render.
xml
A small XML DOM tuned for OOXML editing.