This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Publishers.FlatMap.swift | |
// | |
// Created by Eric Patey on 16.08.2019. | |
// Modified by Nickolay Orekhov | |
// SwitchMap operator based on FlatMap | |
import Combine | |
// import COpenCombineHelpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var input = Array.from([17, 240, 159, 152, 128, 32]); | |
function utf8_read(buffer, start, end) { | |
var len = end - start; | |
if (len < 1) | |
return ""; | |
var parts = null, | |
chunk = [], | |
i = 0, // char offset | |
t; // temporary |