revert changes

This commit is contained in:
blueloveTH 2024-02-01 15:06:26 +08:00
parent 8b84baba59
commit 7a53ae47ee
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,8 @@ namespace pkpy{
// Skip utf8 BOM if there is any. // Skip utf8 BOM if there is any.
if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3; if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3;
// Drop all '\r' // Drop all '\r'
SStream ss(source.size()); // SStream ss(source.size());
SStream ss;
while(index < source.size()){ while(index < source.size()){
if(source[index] != '\r') ss << source[index]; if(source[index] != '\r') ss << source[index];
index++; index++;