Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarStringView.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 00:52:36 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 00:52:36 +1000
commit17af21fd421429b7a64c93c8b09e3f9ea436069a (patch)
tree165732dde2360fc56b9b08a1a25355b95575c132 /source/core/StarStringView.cpp
parent210d6326fcbc87ad69e8a18fa60554d223739b7c (diff)
use raw wrapWidth ptr instead of Maybe
Diffstat (limited to 'source/core/StarStringView.cpp')
-rw-r--r--source/core/StarStringView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/StarStringView.cpp b/source/core/StarStringView.cpp
index 0399b86..8ad3b8c 100644
--- a/source/core/StarStringView.cpp
+++ b/source/core/StarStringView.cpp
@@ -295,6 +295,7 @@ size_t StringView::findFirstNotOf(StringView pattern, size_t beg) const {
}
size_t StringView::findNextBoundary(size_t index, bool backwards) const {
+ //TODO: Make this faster.
size_t mySize = size();
starAssert(index <= mySize);
if (!backwards && (index == mySize))