OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ScriptRunIterator.h" | 5 #include "ScriptRunIterator.h" |
6 | 6 |
| 7 #include <algorithm> |
7 #include "platform/text/ICUError.h" | 8 #include "platform/text/ICUError.h" |
8 #include "wtf/Threading.h" | 9 #include "wtf/Threading.h" |
9 #include <algorithm> | |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 typedef ScriptData::PairedBracketType PairedBracketType; | 13 typedef ScriptData::PairedBracketType PairedBracketType; |
14 | 14 |
15 const int ScriptData::kMaxScriptCount = 20; | 15 const int ScriptData::kMaxScriptCount = 20; |
16 | 16 |
17 ScriptData::~ScriptData() {} | 17 ScriptData::~ScriptData() {} |
18 | 18 |
19 void ICUScriptData::getScripts(UChar32 ch, Vector<UScriptCode>& dst) const { | 19 void ICUScriptData::getScripts(UChar32 ch, Vector<UScriptCode>& dst) const { |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 } | 355 } |
356 return true; | 356 return true; |
357 } | 357 } |
358 | 358 |
359 UScriptCode ScriptRunIterator::resolveCurrentScript() const { | 359 UScriptCode ScriptRunIterator::resolveCurrentScript() const { |
360 UScriptCode result = m_currentSet.at(0); | 360 UScriptCode result = m_currentSet.at(0); |
361 return result == USCRIPT_COMMON ? m_commonPreferred : result; | 361 return result == USCRIPT_COMMON ? m_commonPreferred : result; |
362 } | 362 } |
363 | 363 |
364 } // namespace blink | 364 } // namespace blink |
OLD | NEW |