GetCodepointNext method

(int, int) GetCodepointNext(
  1. String text
)

Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure

Implementation

(int codepoint, int codepointSize) GetCodepointNext(
  String text,
) => run(
  () => _debugLabels.GetCodepointNext(text),
  () {
    final size = $.Int$.Ref1();
    final codepoint = _flat.GetCodepointNext(
      $.String$.ValueOrNull(text),
      size,
    );
    return (codepoint, size.value);
  },
);