CodepointToUTF8 method

(String, int) CodepointToUTF8(
  1. num codepoint
)

Implementation

(String text, int size) CodepointToUTF8(
  num codepoint,
) => run(
  () => 'CodepointToUTF8($codepoint)',
  () {
    final size = refInt1();
    final text = rl.Core.CodepointToUTF8(
      codepoint.toInt(),
      size,
    );
    return (text.toD, size.value);
  },
);