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

Unified Diff: src/unicode.h

Issue 864273005: Scanner / Unicode decoding: use size_t instead of unsigned. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: tentative Created 5 years, 10 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 | « src/scanner-character-streams.cc ('k') | src/unicode.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/unicode.h
diff --git a/src/unicode.h b/src/unicode.h
index 166681426ff9187ca068ce61cafc6ddcfc2b1ff0..7471a638c045d169e58bceae78087615b06202a9 100644
--- a/src/unicode.h
+++ b/src/unicode.h
@@ -136,9 +136,7 @@ class Utf8 {
uchar c,
int previous,
bool replace_invalid = false);
- static uchar CalculateValue(const byte* str,
- unsigned length,
- unsigned* cursor);
+ static uchar CalculateValue(const byte* str, size_t length, size_t* cursor);
// The unicode replacement character, used to signal invalid unicode
// sequences (e.g. an orphan surrogate) when converting to a UTF-8 encoding.
@@ -156,9 +154,7 @@ class Utf8 {
// The maximum size a single UTF-16 code unit may take up when encoded as
// UTF-8.
static const unsigned kMax16BitCodeUnitSize = 3;
- static inline uchar ValueOf(const byte* str,
- unsigned length,
- unsigned* cursor);
+ static inline uchar ValueOf(const byte* str, size_t length, size_t* cursor);
};
struct Uppercase {
« no previous file with comments | « src/scanner-character-streams.cc ('k') | src/unicode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698