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

Unified Diff: Source/core/html/track/vtt/VTTParser.h

Issue 101513002: Add new helper VTTParser::collectDigitsToInt (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 years 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
Index: Source/core/html/track/vtt/VTTParser.h
diff --git a/Source/core/html/track/vtt/VTTParser.h b/Source/core/html/track/vtt/VTTParser.h
index 390ac2fb4bf9f813df4d3fddfd7737a76f33bce3..b585adcfcb6e7367cc9a8d15ed47bcfc0562bc78 100644
--- a/Source/core/html/track/vtt/VTTParser.h
+++ b/Source/core/html/track/vtt/VTTParser.h
@@ -93,7 +93,7 @@ public:
// U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.
return c == ' ' || c == '\t';
}
- static String collectDigits(const String&, unsigned*);
+ static unsigned collectDigitsToInt(const String& input, unsigned* position, int& number);
static String collectWord(const String&, unsigned*);
static double collectTimeStamp(const String&, unsigned*);
@@ -133,7 +133,8 @@ private:
void collectMetadataHeader(const String&);
void createNewRegion(const String& headerValue);
- void skipWhiteSpace(const String&, unsigned*);
+ static String collectDigits(const String&, unsigned*);
+ static void skipWhiteSpace(const String&, unsigned*);
BufferedLineReader m_lineReader;
OwnPtr<TextResourceDecoder> m_decoder;

Powered by Google App Engine
This is Rietveld 408576698