Made code more sensible

This commit is contained in:
Xnoe 2020-07-10 04:54:10 +01:00 committed by Elsie
parent b19378771b
commit b502cd28f3

5
utf8.h
View File

@ -49,9 +49,6 @@ struct string32 {
while (sd[0])
cs.push_back(char32(&sd));
}
string32(std::vector<char32> c32s) {
cs = c32s;
}
int size() const {
return cs.size();
}
@ -59,7 +56,7 @@ struct string32 {
return cs[i];
}
string32 replace(string32 find, string32 with) {
string32 copyOfSelf (cs);
string32 copyOfSelf = *this;
int havematched(0);
int findsize = find.cs.size();
for (int index(0); index < copyOfSelf.cs.size(); index++) {