Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/SmartReplaceCF.cpp

Issue 2397963002: Reflow comments in //third_party/WebKit/Source/core/editing/commands (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 smartSet, isPreviousCharacter ? CFSTR("([\"\'#$/-`{") 44 smartSet, isPreviousCharacter ? CFSTR("([\"\'#$/-`{")
45 : CFSTR(")].,;:?\'!\"%*-/}")); 45 : CFSTR(")].,;:?\'!\"%*-/}"));
46 CFCharacterSetUnion(smartSet, CFCharacterSetGetPredefined( 46 CFCharacterSetUnion(smartSet, CFCharacterSetGetPredefined(
47 kCFCharacterSetWhitespaceAndNewline)); 47 kCFCharacterSetWhitespaceAndNewline));
48 // Adding CJK ranges 48 // Adding CJK ranges
49 CFCharacterSetAddCharactersInRange( 49 CFCharacterSetAddCharactersInRange(
50 smartSet, CFRangeMake(0x1100, 256)); // Hangul Jamo (0x1100 - 0x11FF) 50 smartSet, CFRangeMake(0x1100, 256)); // Hangul Jamo (0x1100 - 0x11FF)
51 CFCharacterSetAddCharactersInRange( 51 CFCharacterSetAddCharactersInRange(
52 smartSet, 52 smartSet,
53 CFRangeMake(0x2E80, 352)); // CJK & Kangxi Radicals (0x2E80 - 0x2FDF) 53 CFRangeMake(0x2E80, 352)); // CJK & Kangxi Radicals (0x2E80 - 0x2FDF)
54 CFCharacterSetAddCharactersInRange( 54 // Ideograph Descriptions, CJK Symbols, Hiragana, Katakana, Bopomofo, Hangul
55 smartSet, 55 // Compatibility Jamo, Kanbun, & Bopomofo Ext (0x2FF0 - 0x31BF)
56 CFRangeMake( 56 CFCharacterSetAddCharactersInRange(smartSet, CFRangeMake(0x2FF0, 464));
57 0x2FF0, 57 // Enclosed CJK, CJK Ideographs (Uni Han & Ext A), & Yi (0x3200 - 0xA4CF)
58 464)); // Ideograph Descriptions, CJK Symbols, Hiragana, Katakana, Bopomofo, Hangul Compatibility Jamo, Kanbun, & Bopomofo Ext (0x2FF0 - 0x31BF) 58 CFCharacterSetAddCharactersInRange(smartSet, CFRangeMake(0x3200, 29392));
59 CFCharacterSetAddCharactersInRange(
60 smartSet,
61 CFRangeMake(
62 0x3200,
63 29392)); // Enclosed CJK, CJK Ideographs (Uni Han & Ext A), & Yi (0 x3200 - 0xA4CF)
64 CFCharacterSetAddCharactersInRange( 59 CFCharacterSetAddCharactersInRange(
65 smartSet, 60 smartSet,
66 CFRangeMake(0xAC00, 11183)); // Hangul Syllables (0xAC00 - 0xD7AF) 61 CFRangeMake(0xAC00, 11183)); // Hangul Syllables (0xAC00 - 0xD7AF)
67 CFCharacterSetAddCharactersInRange( 62 CFCharacterSetAddCharactersInRange(
68 smartSet, 63 smartSet,
69 CFRangeMake(0xF900, 64 CFRangeMake(0xF900,
70 352)); // CJK Compatibility Ideographs (0xF900 - 0xFA5F) 65 352)); // CJK Compatibility Ideographs (0xF900 - 0xFA5F)
71 CFCharacterSetAddCharactersInRange( 66 CFCharacterSetAddCharactersInRange(
72 smartSet, 67 smartSet,
73 CFRangeMake(0xFE30, 32)); // CJK Compatibility From (0xFE30 - 0xFE4F) 68 CFRangeMake(0xFE30, 32)); // CJK Compatibility From (0xFE30 - 0xFE4F)
(...skipping 18 matching lines...) Expand all
92 } 87 }
93 return smartSet; 88 return smartSet;
94 } 89 }
95 90
96 bool isCharacterSmartReplaceExempt(UChar32 c, bool isPreviousCharacter) { 91 bool isCharacterSmartReplaceExempt(UChar32 c, bool isPreviousCharacter) {
97 return CFCharacterSetIsLongCharacterMember(getSmartSet(isPreviousCharacter), 92 return CFCharacterSetIsLongCharacterMember(getSmartSet(isPreviousCharacter),
98 c); 93 c);
99 } 94 }
100 95
101 } // namespace blink 96 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698