GetCodepointCount method

int GetCodepointCount(
  1. String text
)

Get total number of codepoints in a UTF-8 encoded string

Implementation

int GetCodepointCount(
  String text,
) => run(
  () => _debugLabels.GetCodepointCount(text),
  () => _flat.GetCodepointCount(
    $.String$.ValueOrNull(text),
  ),
);