Closed
Bug 1199775
Opened 9 years ago
Closed 9 years ago
mozilla::Tokenizer improvements, vol 2
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: mayhemer, Assigned: mayhemer)
References
Details
Attachments
(1 file, 2 obsolete files)
12.14 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
- tokens returned by Next() and Check() now expose "fragment" which is a substring (reference, no copy!) from the input buffer representing the token - introduced ReadChar(classifier_function) that works the same way as CheckChar(classifier_function) but also returns the value of the character read - introduced Claim() overload that works with nsDependentCSubstring to store the result -> no memcopy https://treeherder.mozilla.org/#/jobs?repo=try&revision=490f1b4c09f8
Attachment #8654334 -
Attachment is obsolete: true
Attachment #8655441 -
Flags: review?(nfroyd)
Assignee | ||
Comment 3•9 years ago
|
||
one more: - internal cursors and state flags made protected: only to allow derived classes do more job more conveniently
Assignee | ||
Comment 4•9 years ago
|
||
slightly improved: - HasFailed() was not in two cases reverted to false after a successful parse operation - test enhanced according that https://treeherder.mozilla.org/#/jobs?repo=try&revision=4079a4002f27
Attachment #8655441 -
Attachment is obsolete: true
Attachment #8655441 -
Flags: review?(nfroyd)
Attachment #8655972 -
Flags: review?(nfroyd)
Comment 5•9 years ago
|
||
Comment on attachment 8655972 [details] [diff] [review] v1.1 Review of attachment 8655972 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/ds/Tokenizer.h @@ +79,5 @@ > char AsChar() const; > nsDependentCSubstring AsString() const; > uint64_t AsInteger() const; > + > + nsDependentCSubstring Fragment() const { return mFragment; } I wonder if AsString and Fragment should return |const nsDependentCSubstring|...if such values are even feasible to use, depending on how const-correct ns*String's API is. Not something to fix in this bug, but something to think about for later. File a bug, please?
Attachment #8655972 -
Flags: review?(nfroyd) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3f38aafec98d
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•