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 19 matching lines...) Expand all Loading... |
30 #include "wtf/ThreadingPrimitives.h" | 30 #include "wtf/ThreadingPrimitives.h" |
31 #include "wtf/text/AtomicString.h" | 31 #include "wtf/text/AtomicString.h" |
32 #include "wtf/text/CString.h" | 32 #include "wtf/text/CString.h" |
33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
34 #include <unicode/rbbi.h> | 34 #include <unicode/rbbi.h> |
35 #include <unicode/ubrk.h> | 35 #include <unicode/ubrk.h> |
36 | 36 |
37 using namespace WTF; | 37 using namespace WTF; |
38 using namespace std; | 38 using namespace std; |
39 | 39 |
40 namespace WebCore { | 40 namespace blink { |
41 | 41 |
42 class LineBreakIteratorPool { | 42 class LineBreakIteratorPool { |
43 WTF_MAKE_NONCOPYABLE(LineBreakIteratorPool); | 43 WTF_MAKE_NONCOPYABLE(LineBreakIteratorPool); |
44 public: | 44 public: |
45 static LineBreakIteratorPool& sharedPool() | 45 static LineBreakIteratorPool& sharedPool() |
46 { | 46 { |
47 static WTF::ThreadSpecific<LineBreakIteratorPool>* pool = new WTF::Threa
dSpecific<LineBreakIteratorPool>; | 47 static WTF::ThreadSpecific<LineBreakIteratorPool>* pool = new WTF::Threa
dSpecific<LineBreakIteratorPool>; |
48 return **pool; | 48 return **pool; |
49 } | 49 } |
50 | 50 |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 "$Tel1 $TelV $Tel0;" // Telugu Virama (backward) | 838 "$Tel1 $TelV $Tel0;" // Telugu Virama (backward) |
839 "$Kan1 $KanV $Kan0;" // Kannada Virama (backward) | 839 "$Kan1 $KanV $Kan0;" // Kannada Virama (backward) |
840 "$Mal1 $MalV $Mal0;" // Malayalam Virama (backward) | 840 "$Mal1 $MalV $Mal0;" // Malayalam Virama (backward) |
841 "!!safe_reverse;" | 841 "!!safe_reverse;" |
842 "!!safe_forward;"; | 842 "!!safe_forward;"; |
843 | 843 |
844 return setUpIteratorWithRules(kRules, string, length); | 844 return setUpIteratorWithRules(kRules, string, length); |
845 } | 845 } |
846 | 846 |
847 } | 847 } |
OLD | NEW |