Utilities for measuring, manipulating, editing text around the caret.