DirectoryEntryNameComparer

DirectoryEntryNameComparer

Overview

DirectoryEntryNameComparer implements IComparer<string> for CFB directory entry names using the UTF-16LE, case-insensitive comparison algorithm defined in MS-CFB §2.6.4. Use it to locate children in the red-black tree of a CFB storage, or when building a sorted directory manually before passing it to CfbWriter. The Compare method returns a negative, zero, or positive integer following the standard IComparer contract.

Methods

SignatureDescription
Compare(left: string, right: string)Compares two CFB directory entry names using UTF-16LE, case-insensitive collation per MS-CFB §2.6.4.

See Also