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

Unified Diff: utils/template/tokenizer.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 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 | « utils/template/codegen.dart ('k') | utils/template/tokenizer_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/template/tokenizer.dart
diff --git a/utils/template/tokenizer.dart b/utils/template/tokenizer.dart
index 8c1b7f248e939dc54ecfbdf8d5fd523a0b7791a5..cb1b516eaac93f0beb4b0d99be4801e9327d056b 100644
--- a/utils/template/tokenizer.dart
+++ b/utils/template/tokenizer.dart
@@ -133,8 +133,8 @@ class Tokenizer extends TokenizerBase {
// Need to override so CSS version of isIdentifierPart is used.
Token finishIdentifier() {
while (_index < _text.length) {
-// if (!TokenizerHelpers.isIdentifierPart(_text.charCodeAt(_index++))) {
- if (!TokenizerHelpers.isIdentifierPart(_text.charCodeAt(_index))) {
+// if (!TokenizerHelpers.isIdentifierPart(_text.codeUnitAt(_index++))) {
+ if (!TokenizerHelpers.isIdentifierPart(_text.codeUnitAt(_index))) {
// _index--;
break;
} else {
@@ -209,7 +209,7 @@ class Tokenizer extends TokenizerBase {
bool maybeEatDigit() {
if (_index < _text.length && TokenizerHelpers.isDigit(
- _text.charCodeAt(_index))) {
+ _text.codeUnitAt(_index))) {
_index += 1;
return true;
}
@@ -218,7 +218,7 @@ class Tokenizer extends TokenizerBase {
void eatHexDigits() {
while (_index < _text.length) {
- if (TokenizerHelpers.isHexDigit(_text.charCodeAt(_index))) {
+ if (TokenizerHelpers.isHexDigit(_text.codeUnitAt(_index))) {
_index += 1;
} else {
return;
@@ -228,7 +228,7 @@ class Tokenizer extends TokenizerBase {
bool maybeEatHexDigit() {
if (_index < _text.length && TokenizerHelpers.isHexDigit(
- _text.charCodeAt(_index))) {
+ _text.codeUnitAt(_index))) {
_index += 1;
return true;
}
« no previous file with comments | « utils/template/codegen.dart ('k') | utils/template/tokenizer_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698