~ubuntu-branches/ubuntu/wily/geany/wily-proposed

« back to all changes in this revision

Viewing changes to scintilla/src/RunStyles.h

  • Committer: Package Import Robot
  • Author(s): Evgeni Golov
  • Date: 2011-11-17 12:59:57 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20111117125957-nv48s8qkd2clcmr1
Tags: 0.21-1
* Imported Upstream version 0.21
* Refresh filetypes patch against 0.21
* Fix Description (thanks lintian!)
* Standards-Version: 3.9.2
* dpatch → 3.0 (quilt)
* Switch to new dh-style debian/rules
* Add a patch to search for plugins in both, multiarch and
  non-multiarch folders
* Add misc:Pre-Depends to Pre-Depends for multiarch
* Generate geany:Provides with GEANY_ABI_VERSION and GEANY_API_VERSION
* Split arch independent parts into geany-common
* Set maintainer to pkg-geany
* Set Vcs-* headers for pkg-geany
* Drop README.source, we're using standard 3.0 quilt now

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file RunStyles.h
 
2
 ** Data structure used to store sparse styles.
 
3
 **/
 
4
// Copyright 1998-2007 by Neil Hodgson <neilh@scintilla.org>
 
5
// The License.txt file describes the conditions under which this software may be distributed.
 
6
 
 
7
/// Styling buffer using one element for each run rather than using
 
8
/// a filled buffer.
 
9
 
 
10
#ifndef RUNSTYLES_H
 
11
#define RUNSTYLES_H
 
12
 
 
13
#ifdef SCI_NAMESPACE
 
14
namespace Scintilla {
 
15
#endif
 
16
 
 
17
class RunStyles {
 
18
public:
 
19
        Partitioning *starts;
 
20
        SplitVector<int> *styles;
 
21
        int RunFromPosition(int position);
 
22
        int SplitRun(int position);
 
23
        void RemoveRun(int run);
 
24
        void RemoveRunIfEmpty(int run);
 
25
        void RemoveRunIfSameAsPrevious(int run);
 
26
public:
 
27
        RunStyles();
 
28
        ~RunStyles();
 
29
        int Length() const;
 
30
        int ValueAt(int position) const;
 
31
        int FindNextChange(int position, int end);
 
32
        int StartRun(int position);
 
33
        int EndRun(int position);
 
34
        // Returns true if some values may have changed
 
35
        bool FillRange(int &position, int value, int &fillLength);
 
36
        void SetValueAt(int position, int value);
 
37
        void InsertSpace(int position, int insertLength);
 
38
        void DeleteAll();
 
39
        void DeleteRange(int position, int deleteLength);
 
40
};
 
41
 
 
42
#ifdef SCI_NAMESPACE
 
43
}
 
44
#endif
 
45
 
 
46
#endif