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

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

Issue 259773005: New analyzer snapshot. Sorted unit members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « no previous file | editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainAnalysisServer.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
index 3ee1055d1f471bf5c003adfe16a9e5dd9c14b663..b613897ec4da31e085236806eb5225e575f4b26e 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
@@ -67,6 +67,24 @@ class Character {
static bool isLetterOrDigit(int c) {
return isLetter(c) || isDigit(c);
}
+ static bool isLowerCase(int c) {
+ return c >= 0x61 && c <= 0x7A;
+ }
+ static bool isUpperCase(int c) {
+ return c >= 0x41 && c <= 0x5A;
+ }
+ static int toLowerCase(int c) {
+ if (c >= 0x41 && c <= 0x5A) {
+ return 0x61 + (c - 0x41);
+ }
+ return c;
+ }
+ static int toUpperCase(int c) {
+ if (c >= 0x61 && c <= 0x7A) {
+ return 0x41 + (c - 0x61);
+ }
+ return c;
+ }
static bool isWhitespace(int c) {
return c == 0x09 || c == 0x20 || c == 0x0A || c == 0x0D;
}
« no previous file with comments | « no previous file | editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainAnalysisServer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698