/external/webkit/Source/WebCore/platform/text/ |
TextDirection.h | 31 enum TextDirection { RTL, LTR };
|
StringWithDirection.h | 50 : m_direction(LTR)
|
/cts/tests/tests/text/src/android/text/cts/ |
BidiFormatterTest.java | 27 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */); 31 new BidiFormatter.Builder(false /* LTR context */).stereoReset(false).build(); 66 assertEquals("uniform dir matches LTR context", 67 "", LTR_FMT.markAfter(EN, TextDirectionHeuristics.LTR)); 71 assertEquals("exit dir opposite to LTR context", 72 LRM, LTR_FMT.markAfter(EN + HE, TextDirectionHeuristics.LTR)); 76 assertEquals("overall dir (but not exit dir) opposite to LTR context", 79 RLM, RTL_FMT.markAfter(EN + HE, TextDirectionHeuristics.LTR)); 81 assertEquals("exit dir neutral, overall dir matches LTR context", 82 "", LTR_FMT.markAfter(".", TextDirectionHeuristics.LTR)); [all...] |
/frameworks/support/v4/tests/java/android/support/v4/text/ |
BidiFormatterTest.java | 26 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */); 30 new BidiFormatter.Builder(false /* LTR context */).stereoReset(false).build(); 66 assertEquals("uniform dir opposite to LTR context", 69 assertEquals("uniform dir opposite to LTR context, stereo reset", 72 assertEquals("uniform dir opposite to LTR context, stereo reset, no isolation", 75 assertEquals("neutral treated as opposite to LTR context", 89 RTL_FMT_EXIT_RESET.unicodeWrap(".", TextDirectionHeuristicsCompat.LTR)); 96 assertEquals("exit dir opposite to LTR context", 98 LTR_FMT_EXIT_RESET.unicodeWrap(EN + HE, TextDirectionHeuristicsCompat.LTR)); 99 assertEquals("exit dir opposite to LTR context, stereo reset" [all...] |
/external/webkit/Source/WebCore/svg/ |
SVGTitleElement.cpp | 44 document()->setTitleElement(StringWithDirection(textContent(), LTR), this); 58 document()->setTitleElement(StringWithDirection(textContent(), LTR), this);
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldBidiTest.java | 75 String LTR = "\u0061\u0062"; 78 String defText = LTR + newLine + RTL + LTR + RTL;
|
/external/webkit/Source/WebKit2/Shared/ |
WebPopupItem.cpp | 39 , m_textDirection(LTR) 47 , m_textDirection(LTR)
|
/external/webkit/Source/WebCore/editing/ |
VisiblePosition.cpp | 119 return primaryDirection == LTR ? previousVisuallyDistinctCandidate(m_deepPosition) : nextVisuallyDistinctCandidate(m_deepPosition); 139 Position positionOnLeft = primaryDirection == LTR ? previousVisuallyDistinctCandidate(m_deepPosition) : nextVisuallyDistinctCandidate(m_deepPosition); 166 if (primaryDirection == LTR ? box->root()->getLogicalStartBoxWithNode(logicalStart) : box->root()->getLogicalEndBoxWithNode(logicalStart)) { 169 offset = primaryDirection == LTR ? box->caretMinOffset() : box->caretMaxOffset(); 227 offset = primaryDirection == LTR ? box->caretMinOffset() : box->caretMaxOffset(); 270 return primaryDirection == LTR ? nextVisuallyDistinctCandidate(m_deepPosition) : previousVisuallyDistinctCandidate(m_deepPosition); 290 Position positionOnRight = primaryDirection == LTR ? nextVisuallyDistinctCandidate(m_deepPosition) : previousVisuallyDistinctCandidate(m_deepPosition); 317 if (primaryDirection == LTR ? box->root()->getLogicalEndBoxWithNode(logicalEnd) : box->root()->getLogicalStartBoxWithNode(logicalEnd)) { 320 offset = primaryDirection == LTR ? box->caretMaxOffset() : box->caretMinOffset(); 379 offset = primaryDirection == LTR ? box->caretMaxOffset() : box->caretMinOffset() [all...] |
SelectionController.cpp | 366 if (directionOfEnclosingBlock() == LTR) 375 if (directionOfEnclosingBlock() == LTR) 424 // it extends forward logically if the enclosing block is LTR direction, 428 if (directionOfEnclosingBlock() == LTR) 434 if (directionOfEnclosingBlock() == LTR) 440 if (directionOfEnclosingBlock() == LTR) 508 if (directionOfEnclosingBlock() == LTR) 592 // it extends backward logically if the enclosing block is LTR direction, 596 if (directionOfEnclosingBlock() == LTR) 602 if (directionOfEnclosingBlock() == LTR) [all...] |
visible_units.cpp | [all...] |
/external/webkit/Source/WebKit2/UIProcess/mac/ |
WebPopupMenuProxyMac.mm | 72 NSWritingDirection writingDirection = items[i].m_textDirection == LTR ? NSWritingDirectionLeftToRight : NSWritingDirectionRightToLeft; 74 [paragraphStyle.get() setAlignment:menuTextDirection == LTR ? NSLeftTextAlignment : NSRightTextAlignment]; 106 [m_popup.get() setUserInterfaceLayoutDirection:textDirection == LTR ? NSUserInterfaceLayoutDirectionLeftToRight : NSUserInterfaceLayoutDirectionRightToLeft];
|
/external/webkit/Source/WebCore/html/ |
HTMLTitleElement.cpp | 80 TextDirection direction = LTR;
|
/external/webkit/Source/WebCore/platform/mac/ |
PopupMenuMac.mm | 80 [m_popup.get() setUserInterfaceLayoutDirection:menuTextDirection == LTR ? NSUserInterfaceLayoutDirectionLeftToRight : NSUserInterfaceLayoutDirectionRightToLeft]; 103 [paragraphStyle.get() setAlignment:menuTextDirection == LTR ? NSLeftTextAlignment : NSRightTextAlignment]; 104 NSWritingDirection writingDirection = style.textDirection() == LTR ? NSWritingDirectionLeftToRight : NSWritingDirectionRightToLeft;
|
/external/webkit/Source/WebCore/notifications/ |
Notification.h | 82 TextDirection direction() const { return dir() == "rtl" ? RTL : LTR; }
|
/external/webkit/Source/WebCore/rendering/ |
InlineBox.h | 277 TextDirection direction() const { return m_bidiEmbeddingLevel % 2 ? RTL : LTR; } 278 bool isLeftToRightDirection() const { return direction() == LTR; } 291 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth); 293 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibleRightEdge, float ellipsisWidth, bool&);
|
RenderMarquee.cpp | 93 result = (dir == LTR) ? MRIGHT : MLEFT; 95 result = (dir == LTR) ? MLEFT : MRIGHT; 117 bool ltr = s->isLeftToRightDirection(); local 119 int contentWidth = ltr ? box->maxXLayoutOverflow() : box->minXLayoutOverflow(); 120 if (ltr) 128 return max(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth)); 130 return ltr ? contentWidth : clientWidth; 134 return min(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth)); 136 return ltr ? -clientWidth : -contentWidth;
|
/frameworks/base/core/java/android/text/ |
MeasuredText.java | 125 if ((textDir == TextDirectionHeuristics.LTR || 136 if (textDir == TextDirectionHeuristics.LTR) {
|
TextDirectionHeuristics.java | 40 public static final TextDirectionHeuristic LTR =
|
BidiFormatter.java | 75 * the same as the context, but is either constant (e.g. urls are always LTR) or otherwise known. 220 false /* LTR context */, 297 * @return LRM for RTL text in LTR context; RLM for LTR text in RTL context; 326 * @return LRM for RTL text in LTR context; RLM for LTR text in RTL context; 361 * LRE+{@code str}+PDF for LTR text. 387 isRtl ? TextDirectionHeuristics.RTL : TextDirectionHeuristics.LTR)); 398 isRtl ? TextDirectionHeuristics.RTL : TextDirectionHeuristics.LTR)); 443 * @param locale The Locale whose directionality will be checked to be RTL or LTR [all...] |
/external/webkit/Source/WebCore/page/ |
Chrome.cpp | 387 toolTipDirection = LTR; 396 // URL always display as LTR. 397 toolTipDirection = LTR; 421 // filename always display as LTR. 422 toolTipDirection = LTR;
|
/frameworks/support/v4/java/android/support/v4/text/ |
TextDirectionHeuristicsCompat.java | 33 public static final android.support.v4.text.TextDirectionHeuristicCompat LTR =
|
BidiFormatter.java | 71 * the same as the context, but is either constant (e.g. urls are always LTR) or otherwise known. 216 false /* LTR context */, 293 * @return LRM for RTL text in LTR context; RLM for LTR text in RTL context; 320 * @return LRM for RTL text in LTR context; RLM for LTR text in RTL context; 353 * LRE+{@code str}+PDF for LTR text. 378 isRtl ? TextDirectionHeuristicsCompat.RTL : TextDirectionHeuristicsCompat.LTR)); 389 isRtl ? TextDirectionHeuristicsCompat.RTL : TextDirectionHeuristicsCompat.LTR)); 433 * @param locale The Locale whose directionality will be checked to be RTL or LTR [all...] |
/external/webkit/Source/WebCore/editing/mac/ |
EditorMac.mm | 180 case LTR:
|
/external/webkit/Source/WebCore/css/ |
CSSProperty.cpp | 45 if (direction == LTR) {
|
/external/webkit/Source/WebCore/platform/graphics/ |
WidthIterator.cpp | 66 unsigned expansionOpportunityCount = Font::expansionOpportunityCount(m_run.characters(), m_end, m_run.ltr() ? LTR : RTL, isAfterExpansion); 179 if (m_run.allowsTrailingExpansion() || (m_run.ltr() && currentCharacter + clusterLength < static_cast<size_t>(m_run.length()))
|