~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/libs/utils/bracematcher.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    and quotes.
39
39
 
40
40
    This is a helper class for autocompleter implementations. To use it,
41
 
    define "brace", "quote", and "delimiter" characters for given language.
 
41
    define \e brace, \e quote, and \e delimiter characters for a given language.
42
42
*/
43
43
 
44
44
namespace Utils {
45
45
 
46
46
/*!
47
 
 * Adds a pair of characters, corresponding to opening and closing braces.
 
47
 * Adds a pair of characters, corresponding to \a opening and \a closing braces.
48
48
 */
49
49
void BraceMatcher::addBraceCharPair(const QChar opening, const QChar closing)
50
50
{
52
52
}
53
53
 
54
54
/*!
55
 
 * Adds quote character
 
55
 * Adds a \a quote character.
56
56
 */
57
57
void BraceMatcher::addQuoteChar(const QChar quote)
58
58
{
60
60
}
61
61
 
62
62
/*!
63
 
 * Adds separator character that should be skipped when overtyping it, e.g.
64
 
 * it could be ';' or ',' in C-like languages.
 
63
 * Adds a separator character \a sep that should be skipped when overtyping it.
 
64
 * For example, it could be ';' or ',' in C-like languages.
65
65
 */
66
66
void BraceMatcher::addDelimiterChar(const QChar sep)
67
67
{
113
113
}
114
114
 
115
115
/*!
116
 
 * Returns true if given character was added as one of character types.
 
116
 * Returns true if the character \a c was added as one of character types.
117
117
 */
118
118
bool BraceMatcher::isKnownChar(const QChar c) const
119
119
{