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

Side by Side Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 128443003: Analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library java.core; 1 library java.core;
2 2
3 import "dart:math" as math; 3 import "dart:math" as math;
4 4
5 class JavaSystem { 5 class JavaSystem {
6 static int currentTimeMillis() { 6 static int currentTimeMillis() {
7 return (new DateTime.now()).millisecondsSinceEpoch; 7 return (new DateTime.now()).millisecondsSinceEpoch;
8 } 8 }
9 9
10 static void arraycopy(List src, int srcPos, List dest, int destPos, int length ) { 10 static void arraycopy(List src, int srcPos, List dest, int destPos, int length ) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 static List asList(List list) => list; 116 static List asList(List list) => list;
117 } 117 }
118 118
119 class Character { 119 class Character {
120 static const int MAX_VALUE = 0xffff; 120 static const int MAX_VALUE = 0xffff;
121 static const int MAX_CODE_POINT = 0x10ffff; 121 static const int MAX_CODE_POINT = 0x10ffff;
122 static const int MIN_SUPPLEMENTARY_CODE_POINT = 0x010000; 122 static const int MIN_SUPPLEMENTARY_CODE_POINT = 0x010000;
123 static const int MIN_LOW_SURROGATE = 0xDC00; 123 static const int MIN_LOW_SURROGATE = 0xDC00;
124 static const int MIN_HIGH_SURROGATE = 0xD800; 124 static const int MIN_HIGH_SURROGATE = 0xD800;
125 static bool isDigit(int c) {
126 return c >= 0x30 && c <= 0x39;
127 }
125 static bool isLetter(int c) { 128 static bool isLetter(int c) {
126 return c >= 0x41 && c <= 0x5A || c >= 0x61 && c <= 0x7A; 129 return c >= 0x41 && c <= 0x5A || c >= 0x61 && c <= 0x7A;
127 } 130 }
128 static bool isLetterOrDigit(int c) { 131 static bool isLetterOrDigit(int c) {
129 return isLetter(c) || c >= 0x30 && c <= 0x39; 132 return isLetter(c) || isDigit(c);
130 } 133 }
131 static bool isWhitespace(int c) { 134 static bool isWhitespace(int c) {
132 return c == 0x09 || c == 0x20 || c == 0x0A || c == 0x0D; 135 return c == 0x09 || c == 0x20 || c == 0x0A || c == 0x0D;
133 } 136 }
134 static int digit(int codePoint, int radix) { 137 static int digit(int codePoint, int radix) {
135 if (radix != 16) { 138 if (radix != 16) {
136 throw new ArgumentError("only radix == 16 is supported"); 139 throw new ArgumentError("only radix == 16 is supported");
137 } 140 }
138 if (0x30 <= codePoint && codePoint <= 0x39) { 141 if (0x30 <= codePoint && codePoint <= 0x39) {
139 return codePoint - 0x30; 142 return codePoint - 0x30;
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 if (!_matches.moveNext()) { 497 if (!_matches.moveNext()) {
495 return false; 498 return false;
496 } 499 }
497 _match = _matches.current; 500 _match = _matches.current;
498 return true; 501 return true;
499 } 502 }
500 String group(int i) => _match[i]; 503 String group(int i) => _match[i];
501 int start() => _match.start; 504 int start() => _match.start;
502 int end() => _match.end; 505 int end() => _match.end;
503 } 506 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698