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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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
« no previous file with comments | « dart/pkg/intl/lib/bidi_formatter.dart ('k') | dart/pkg/intl/lib/date_format.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of intl;
2
3 // 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
4 // 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
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 /** 5 /**
8 * Bidi stands for Bi-directional text. 6 * Bidi stands for Bi-directional text.
9 * According to http://en.wikipedia.org/wiki/Bi-directional_text: 7 * According to http://en.wikipedia.org/wiki/Bi-directional_text:
10 * Bi-directional text is text containing text in both text directionalities, 8 * Bi-directional text is text containing text in both text directionalities,
11 * both right-to-left (RTL) and left-to-right (LTR). It generally involves text 9 * both right-to-left (RTL) and left-to-right (LTR). It generally involves text
12 * containing different types of alphabets, but may also refer to boustrophedon, 10 * containing different types of alphabets, but may also refer to boustrophedon,
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 391
394 /** 392 /**
395 * Check the estimated directionality of [str], return true if the piece of 393 * Check the estimated directionality of [str], return true if the piece of
396 * text should be laid out in RTL direction. If [isHtml] is true, the string 394 * text should be laid out in RTL direction. If [isHtml] is true, the string
397 * is HTML or HTML-escaped. 395 * is HTML or HTML-escaped.
398 */ 396 */
399 static bool detectRtlDirectionality(String str, {bool isHtml: false}) { 397 static bool detectRtlDirectionality(String str, {bool isHtml: false}) {
400 return estimateDirectionOfText(str, isHtml: isHtml) == TextDirection.RTL; 398 return estimateDirectionOfText(str, isHtml: isHtml) == TextDirection.RTL;
401 } 399 }
402 } 400 }
OLDNEW
« no previous file with comments | « dart/pkg/intl/lib/bidi_formatter.dart ('k') | dart/pkg/intl/lib/date_format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698