| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Lars Knoll <lars@trolltech.com> | 2 * Copyright (C) 2006 Lars Knoll <lars@trolltech.com> |
| 3 * Copyright (C) 2007, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include <unicode/ubrk.h> | 25 #include <unicode/ubrk.h> |
| 26 #include <memory> | 26 #include <memory> |
| 27 #include "platform/text/TextBreakIteratorInternalICU.h" | 27 #include "platform/text/TextBreakIteratorInternalICU.h" |
| 28 #include "platform/wtf/Assertions.h" | 28 #include "platform/wtf/Assertions.h" |
| 29 #include "platform/wtf/HashMap.h" | 29 #include "platform/wtf/HashMap.h" |
| 30 #include "platform/wtf/PtrUtil.h" | 30 #include "platform/wtf/PtrUtil.h" |
| 31 #include "platform/wtf/ThreadSpecific.h" | 31 #include "platform/wtf/ThreadSpecific.h" |
| 32 #include "platform/wtf/ThreadingPrimitives.h" | 32 #include "platform/wtf/ThreadingPrimitives.h" |
| 33 #include "platform/wtf/text/WTFString.h" | 33 #include "platform/wtf/text/WTFString.h" |
| 34 | 34 |
| 35 using namespace WTF; | |
| 36 | |
| 37 namespace blink { | 35 namespace blink { |
| 38 | 36 |
| 39 class LineBreakIteratorPool final { | 37 class LineBreakIteratorPool final { |
| 40 USING_FAST_MALLOC(LineBreakIteratorPool); | 38 USING_FAST_MALLOC(LineBreakIteratorPool); |
| 41 WTF_MAKE_NONCOPYABLE(LineBreakIteratorPool); | 39 WTF_MAKE_NONCOPYABLE(LineBreakIteratorPool); |
| 42 | 40 |
| 43 public: | 41 public: |
| 44 static LineBreakIteratorPool& SharedPool() { | 42 static LineBreakIteratorPool& SharedPool() { |
| 45 static WTF::ThreadSpecific<LineBreakIteratorPool>* pool = | 43 static WTF::ThreadSpecific<LineBreakIteratorPool>* pool = |
| 46 new WTF::ThreadSpecific<LineBreakIteratorPool>; | 44 new WTF::ThreadSpecific<LineBreakIteratorPool>; |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 "$Tel1 $TelV $Tel0;" // Telugu Virama (backward) | 938 "$Tel1 $TelV $Tel0;" // Telugu Virama (backward) |
| 941 "$Kan1 $KanV $Kan0;" // Kannada Virama (backward) | 939 "$Kan1 $KanV $Kan0;" // Kannada Virama (backward) |
| 942 "$Mal1 $MalV $Mal0;" // Malayalam Virama (backward) | 940 "$Mal1 $MalV $Mal0;" // Malayalam Virama (backward) |
| 943 "!!safe_reverse;" | 941 "!!safe_reverse;" |
| 944 "!!safe_forward;"; | 942 "!!safe_forward;"; |
| 945 | 943 |
| 946 return SetUpIteratorWithRules(kRules, string, length); | 944 return SetUpIteratorWithRules(kRules, string, length); |
| 947 } | 945 } |
| 948 | 946 |
| 949 } // namespace blink | 947 } // namespace blink |
| OLD | NEW |