OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
3 * Copyright (C) 2005 Alexey Proskuryakov. | 3 * Copyright (C) 2005 Alexey Proskuryakov. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "platform/text/UnicodeUtilities.h" | 28 #include "platform/text/UnicodeUtilities.h" |
29 | 29 |
30 #include "wtf/text/StringBuffer.h" | 30 #include "wtf/text/StringBuffer.h" |
31 #include "wtf/unicode/CharacterNames.h" | 31 #include "wtf/unicode/CharacterNames.h" |
32 #include <unicode/unorm.h> | 32 #include <unicode/unorm.h> |
33 | 33 |
34 using namespace WTF::Unicode; | 34 using namespace WTF::Unicode; |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 | 37 |
38 enum VoicedSoundMarkType { | 38 enum VoicedSoundMarkType { |
39 NoVoicedSoundMark, | 39 NoVoicedSoundMark, |
40 VoicedSoundMark, | 40 VoicedSoundMark, |
41 SemiVoicedSoundMark | 41 SemiVoicedSoundMark |
42 }; | 42 }; |
43 | 43 |
44 template <typename CharType> | 44 template <typename CharType> |
45 static inline CharType foldQuoteMarkOrSoftHyphen(CharType c) | 45 static inline CharType foldQuoteMarkOrSoftHyphen(CharType c) |
46 { | 46 { |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 if (offset == kNotFound) | 406 if (offset == kNotFound) |
407 return false; | 407 return false; |
408 | 408 |
409 // Update values of |a| and |b| after comparing. | 409 // Update values of |a| and |b| after comparing. |
410 a += offset; | 410 a += offset; |
411 b += offset; | 411 b += offset; |
412 } | 412 } |
413 } | 413 } |
414 | 414 |
415 } | 415 } |
OLD | NEW |