Add an overload of ByteVector::replace() which takes chars.

Currently, this is only way of using ByteVector::replace().
This commit is contained in:
Tsuda Kageyu
2016-02-18 03:47:02 +09:00
parent a9acca5d81
commit 07d95e0dc0
5 changed files with 29 additions and 4 deletions

View File

@ -134,7 +134,7 @@ public:
if(index > -1) {
data.resize(index);
}
data.replace((char) 0xff, ' ');
data.replace('\xff', ' ');
value = data;
return count;
}