Mercurial > projects > dwt2
comparison org.eclipse.jface.text/src/org/eclipse/jface/text/rules/IWordDetector.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
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 org.eclipse.jface.text.rules.IWordDetector; | |
14 | |
15 import org.eclipse.jface.text.rules.FastPartitioner; // packageimport | |
16 import org.eclipse.jface.text.rules.ITokenScanner; // packageimport | |
17 import org.eclipse.jface.text.rules.Token; // packageimport | |
18 import org.eclipse.jface.text.rules.RuleBasedScanner; // packageimport | |
19 import org.eclipse.jface.text.rules.EndOfLineRule; // packageimport | |
20 import org.eclipse.jface.text.rules.WordRule; // packageimport | |
21 import org.eclipse.jface.text.rules.WhitespaceRule; // packageimport | |
22 import org.eclipse.jface.text.rules.WordPatternRule; // packageimport | |
23 import org.eclipse.jface.text.rules.IPredicateRule; // packageimport | |
24 import org.eclipse.jface.text.rules.DefaultPartitioner; // packageimport | |
25 import org.eclipse.jface.text.rules.NumberRule; // packageimport | |
26 import org.eclipse.jface.text.rules.SingleLineRule; // packageimport | |
27 import org.eclipse.jface.text.rules.PatternRule; // packageimport | |
28 import org.eclipse.jface.text.rules.RuleBasedDamagerRepairer; // packageimport | |
29 import org.eclipse.jface.text.rules.ICharacterScanner; // packageimport | |
30 import org.eclipse.jface.text.rules.IRule; // packageimport | |
31 import org.eclipse.jface.text.rules.DefaultDamagerRepairer; // packageimport | |
32 import org.eclipse.jface.text.rules.IToken; // packageimport | |
33 import org.eclipse.jface.text.rules.IPartitionTokenScanner; // packageimport | |
34 import org.eclipse.jface.text.rules.MultiLineRule; // packageimport | |
35 import org.eclipse.jface.text.rules.RuleBasedPartitioner; // packageimport | |
36 import org.eclipse.jface.text.rules.RuleBasedPartitionScanner; // packageimport | |
37 import org.eclipse.jface.text.rules.BufferedRuleBasedScanner; // packageimport | |
38 import org.eclipse.jface.text.rules.IWhitespaceDetector; // packageimport | |
39 | |
40 | |
41 import java.lang.all; | |
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 */ | |
58 bool isWordStart(dchar c); | |
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 */ | |
67 bool isWordPart(dchar c); | |
68 } |