Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/DefaultCharacterPairMatcher.d @ 146:75302ef3f92f
final
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:34:04 +0200 |
parents | 6dcb0baaa031 |
children | f70d9508c95c |
comparison
equal
deleted
inserted
replaced
145:02cd5f1224d3 | 146:75302ef3f92f |
---|---|
96 * @since 3.3 | 96 * @since 3.3 |
97 */ | 97 */ |
98 public class DefaultCharacterPairMatcher : ICharacterPairMatcher { | 98 public class DefaultCharacterPairMatcher : ICharacterPairMatcher { |
99 | 99 |
100 private int fAnchor= -1; | 100 private int fAnchor= -1; |
101 private final CharPairs fPairs; | 101 private const CharPairs fPairs; |
102 private final String fPartitioning; | 102 private const String fPartitioning; |
103 | 103 |
104 /** | 104 /** |
105 * Creates a new character pair matcher that matches the specified | 105 * Creates a new character pair matcher that matches the specified |
106 * characters within the specified partitioning. The specified | 106 * characters within the specified partitioning. The specified |
107 * list of characters must have the form | 107 * list of characters must have the form |
219 * partition and, when considering whether or not a position is a | 219 * partition and, when considering whether or not a position is a |
220 * valid match, only considers position within its partition. | 220 * valid match, only considers position within its partition. |
221 */ | 221 */ |
222 private static class DocumentPartitionAccessor { | 222 private static class DocumentPartitionAccessor { |
223 | 223 |
224 private final IDocument fDocument; | 224 private const IDocument fDocument; |
225 private final String fPartitioning, fPartition; | 225 private const String fPartitioning, fPartition; |
226 private ITypedRegion fCachedPartition; | 226 private ITypedRegion fCachedPartition; |
227 | 227 |
228 /** | 228 /** |
229 * Creates a new partitioned document for the specified document. | 229 * Creates a new partitioned document for the specified document. |
230 * | 230 * |
336 /** | 336 /** |
337 * Utility class that encapsulates access to matching character pairs. | 337 * Utility class that encapsulates access to matching character pairs. |
338 */ | 338 */ |
339 private static class CharPairs { | 339 private static class CharPairs { |
340 | 340 |
341 private final char[] fPairs; | 341 private const char[] fPairs; |
342 | 342 |
343 public this(char[] pairs) { | 343 public this(char[] pairs) { |
344 fPairs= pairs; | 344 fPairs= pairs; |
345 } | 345 } |
346 | 346 |