4 ms·substring for c++ and other languages needs an j-i+1.by tmsh 7y agosubstring for c++ and other languages needs an j-i+1.