string ascii
This commit is contained in:
@@ -290,13 +290,7 @@ PIString PIString::fromUTF8(const PIByteArray & ba) {
|
||||
|
||||
|
||||
PIString PIString::fromAscii(const char * s) {
|
||||
PIString ret;
|
||||
int l = 0;
|
||||
while (s[l] != '\0') {
|
||||
ret.push_back(PIChar(s[l]));
|
||||
++l;
|
||||
}
|
||||
return ret;
|
||||
return fromAscii(s, strlen(s));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user