int nodeLength(FNode node) { if (node is InlineContainerNode) { return _countWithoutZws((node as InlineContainerNode).text); } if (node is Fragment) return _countWithoutZws(node.text); return 0; }