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

Side by Side Diff: pkg/intl/lib/bidi_formatter.dart

Issue 11366016: Update intl to new import syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of intl;
6
5 /** 7 /**
6 * Bidi stands for Bi-directional text. 8 * Bidi stands for Bi-directional text.
7 * According to [Wikipedia](http://en.wikipedia.org/wiki/Bi-directional_text): 9 * According to [Wikipedia](http://en.wikipedia.org/wiki/Bi-directional_text):
8 * Bi-directional text is text containing text in both text directionalities, 10 * Bi-directional text is text containing text in both text directionalities,
9 * both right-to-left (RTL) and left-to-right (LTR). It generally involves text 11 * both right-to-left (RTL) and left-to-right (LTR). It generally involves text
10 * containing different types of alphabets, but may also refer to boustrophedon, 12 * containing different types of alphabets, but may also refer to boustrophedon,
11 * which is changing text directionality in each row. 13 * which is changing text directionality in each row.
12 * 14 *
13 * Utility class for formatting display text in a potentially 15 * Utility class for formatting display text in a potentially
14 * opposite-directionality context without garbling layout issues. 16 * opposite-directionality context without garbling layout issues.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if (contextDirection == TextDirection.LTR) { 193 if (contextDirection == TextDirection.LTR) {
192 return Bidi.LRM; 194 return Bidi.LRM;
193 } else { 195 } else {
194 return Bidi.RLM; 196 return Bidi.RLM;
195 } 197 }
196 } else { 198 } else {
197 return ''; 199 return '';
198 } 200 }
199 } 201 }
200 } 202 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698