Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1943)

Unified Diff: Source/platform/text/TextBoundaries.h

Issue 268363016: Improve the find word boundary performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add findWordEndBoundary Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | Source/platform/text/TextBoundaries.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/TextBoundaries.h
diff --git a/Source/platform/text/TextBoundaries.h b/Source/platform/text/TextBoundaries.h
index fd9f5f4cf5530aa42c859fcb1e640aa30cb20663..754e7c18aaab9abbeead891c02cd83be0fff1baf 100644
--- a/Source/platform/text/TextBoundaries.h
+++ b/Source/platform/text/TextBoundaries.h
@@ -40,6 +40,7 @@ PLATFORM_EXPORT int endOfFirstWordBoundaryContext(const UChar* characters, int l
PLATFORM_EXPORT int startOfLastWordBoundaryContext(const UChar* characters, int length);
PLATFORM_EXPORT void findWordBoundary(const UChar*, int len, int position, int* start, int* end);
+PLATFORM_EXPORT int findWordEndBoundary(const UChar*, int len, int position);
PLATFORM_EXPORT int findNextWordFromIndex(const UChar*, int len, int position, bool forward);
}
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | Source/platform/text/TextBoundaries.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698