nodeLength function

int nodeLength(
  1. FNode node
)

Implementation

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