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

Unified Diff: pkg/intl/bidi_utils.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « pkg/fixnum/test/int_64_vm_test.dart ('k') | pkg/intl/date_format.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/bidi_utils.dart
===================================================================
--- pkg/intl/bidi_utils.dart (revision 11633)
+++ pkg/intl/bidi_utils.dart (working copy)
@@ -21,12 +21,12 @@
* bidi_utils.dart directly.
*/
class TextDirection {
- static final LTR = const TextDirection._('LTR', 'ltr');
- static final RTL = const TextDirection._('RTL', 'rtl');
+ static const LTR = const TextDirection._('LTR', 'ltr');
+ static const RTL = const TextDirection._('RTL', 'rtl');
// If the directionality of the text cannot be determined and we are not using
// the context direction (or if the context direction is unknown), then the
// text falls back on the more common ltr direction.
- static final UNKNOWN = const TextDirection._('UNKNOWN', 'ltr');
+ static const UNKNOWN = const TextDirection._('UNKNOWN', 'ltr');
/**
* Textual representation of the directionality constant. One of
@@ -49,19 +49,19 @@
}
/** Unicode "Left-To-Right Embedding" (LRE) character. */
-final LRE = '\u202A';
+const LRE = '\u202A';
/** Unicode "Right-To-Left Embedding" (RLE) character. */
-final RLE = '\u202B';
+const RLE = '\u202B';
/** Unicode "Pop Directional Formatting" (PDF) character. */
-final PDF = '\u202C';
+const PDF = '\u202C';
/** Unicode "Left-To-Right Mark" (LRM) character. */
-final LRM = '\u200E';
+const LRM = '\u200E';
/** Unicode "Right-To-Left Mark" (RLM) character. */
-final RLM = '\u200F';
+const RLM = '\u200F';
/** Constant to define the threshold of RTL directionality. */
num _RTL_DETECTION_THRESHOLD = 0.40;
@@ -71,10 +71,10 @@
* These patterns are not completely correct according to the Unicode
* standard. They are simplified for performance and small code size.
*/
-final String _LTR_CHARS =
+const String _LTR_CHARS =
@'A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u0300-\u0590'
@'\u0800-\u1FFF\u2C00-\uFB1C\uFDFE-\uFE6F\uFEFD-\uFFFF';
-final String _RTL_CHARS = @'\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC';
+const String _RTL_CHARS = @'\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC';
/**
* Returns the input [text] with spaces instead of HTML tags or HTML escapes,
« no previous file with comments | « pkg/fixnum/test/int_64_vm_test.dart ('k') | pkg/intl/date_format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698