jeudi 30 novembre 2017

Extract the substring for a given byte-span from a string in c++

I have a std::string and a byte-span (start_byte, end_byte) From this, how do I extract a substring corresponding to this span? I checked std::string::substr(), but it works only with a character position and length.

Aucun commentaire:

Enregistrer un commentaire