Mercurial > projects > dwt-addons
annotate dwtx/jface/text/rules/IWordDetector.d @ 200:eb3414669eb0 default tip
fix for dmd 1.041 and tango 0.99.8
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 28 Mar 2009 03:09:57 +0100 |
parents | eb98a5cbfd78 |
children |
rev | line source |
---|---|
129 | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2005 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.text.rules.IWordDetector; | |
14 | |
131 | 15 import dwtx.jface.text.rules.FastPartitioner; // packageimport |
16 import dwtx.jface.text.rules.ITokenScanner; // packageimport | |
17 import dwtx.jface.text.rules.Token; // packageimport | |
18 import dwtx.jface.text.rules.RuleBasedScanner; // packageimport | |
19 import dwtx.jface.text.rules.EndOfLineRule; // packageimport | |
20 import dwtx.jface.text.rules.WordRule; // packageimport | |
21 import dwtx.jface.text.rules.WhitespaceRule; // packageimport | |
22 import dwtx.jface.text.rules.WordPatternRule; // packageimport | |
23 import dwtx.jface.text.rules.IPredicateRule; // packageimport | |
24 import dwtx.jface.text.rules.DefaultPartitioner; // packageimport | |
25 import dwtx.jface.text.rules.NumberRule; // packageimport | |
26 import dwtx.jface.text.rules.SingleLineRule; // packageimport | |
27 import dwtx.jface.text.rules.PatternRule; // packageimport | |
28 import dwtx.jface.text.rules.RuleBasedDamagerRepairer; // packageimport | |
29 import dwtx.jface.text.rules.ICharacterScanner; // packageimport | |
30 import dwtx.jface.text.rules.IRule; // packageimport | |
31 import dwtx.jface.text.rules.DefaultDamagerRepairer; // packageimport | |
32 import dwtx.jface.text.rules.IToken; // packageimport | |
33 import dwtx.jface.text.rules.IPartitionTokenScanner; // packageimport | |
34 import dwtx.jface.text.rules.MultiLineRule; // packageimport | |
35 import dwtx.jface.text.rules.RuleBasedPartitioner; // packageimport | |
36 import dwtx.jface.text.rules.RuleBasedPartitionScanner; // packageimport | |
37 import dwtx.jface.text.rules.BufferedRuleBasedScanner; // packageimport | |
38 import dwtx.jface.text.rules.IWhitespaceDetector; // packageimport | |
39 | |
40 | |
129 | 41 import dwt.dwthelper.utils; |
42 | |
43 | |
44 /** | |
45 * Defines the interface by which <code>WordRule</code> | |
46 * determines whether a given character is valid as part | |
47 * of a word in the current context. | |
48 */ | |
49 public interface IWordDetector { | |
50 | |
51 /** | |
52 * Returns whether the specified character is | |
53 * valid as the first character in a word. | |
54 * | |
55 * @param c the character to be checked | |
56 * @return <code>true</code> is a valid first character in a word, <code>false</code> otherwise | |
57 */ | |
199
eb98a5cbfd78
Fix: potential problem with synchronized, thx torhu.
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
58 bool isWordStart(dchar c); |
129 | 59 |
60 /** | |
61 * Returns whether the specified character is | |
62 * valid as a subsequent character in a word. | |
63 * | |
64 * @param c the character to be checked | |
65 * @return <code>true</code> if the character is a valid word part, <code>false</code> otherwise | |
66 */ | |
199
eb98a5cbfd78
Fix: potential problem with synchronized, thx torhu.
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
67 bool isWordPart(dchar c); |
129 | 68 } |