added moveBackToLineStart() method on ZString.

This commit is contained in:
Brad Arant committed 2024-11-26 10:33:31 -08:00
1 parent ab4da04de6
commit 2de5693e87
2 files changed
+18 -3

No files matched your search

+10 -2
View File
@@ -583,6 +583,14 @@ namespace coreutils {
++line;
return line;
}
void ZString::moveBackToLineStart() {
while(cursor != data) {
if(*cursor == '\n')
break;
cursor--;
}
return;
}
}