utf8ToCodepoints function

List<int?> utf8ToCodepoints(
  1. List<int> utf8EncodedBytes, [
  2. int offset = 0,
  3. int? length,
  4. int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT,
])

Implementation

List<int?> utf8ToCodepoints(List<int> utf8EncodedBytes,
    [int offset = 0,
    int? length,
    int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) {
  return Utf8Decoder(utf8EncodedBytes, offset, length, replacementCodepoint)
      .decodeRest();
}