tryDropUntil

This commit is contained in:
2024-12-10 20:33:33 -06:00
parent 70464e4bce
commit 1ae2eaa3c5

View File

@@ -213,6 +213,12 @@ class Stream {
dropChars(content.indexOf(s), false);
}
public function tryDropUntil(s:String) {
if (content.indexOf(s) != -1) {
dropUntil(s);
}
}
public function dropWhitespace() {
var trimmed = content.ltrim();
dropChars(content.length - trimmed.length, false);