using a shared buffer for QTextBoundaryFinder