From 4f440a429e490c3df0d784fdb9138efc8f35bf6f Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 9 Apr 2024 14:45:35 +0100 Subject: [PATCH] Optimised string_view::find_first_not_of & string_view::find_last_not_of --- include/etl/string_view.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/etl/string_view.h b/include/etl/string_view.h index a196b908..7ddce503 100644 --- a/include/etl/string_view.h +++ b/include/etl/string_view.h @@ -662,6 +662,7 @@ namespace etl if (mbegin[i] == view[j]) { found = true; + break; } } @@ -715,6 +716,7 @@ namespace etl if (mbegin[position] == view[j]) { found = true; + break; } }