acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
ch_class.h
1#pragma once
2
3
4#include "acme/prototype/collection/bit_array.h"
5//#include "acme/prototype/string/_c.h"
6
14class CLASS_DECL_ACME ch_class
15{
16private:
17 bit_array **infoIndex;
18public:
19 ch_class();
20 ch_class(const ch_class &);
21 ~ch_class();
22
23 static ch_class *createCharClass(const_char_pointer ccs, character_count pos, character_count *retPos);
24
25 void add_char(const_char_pointer );
26 void clear_char(const_char_pointer );
27 void add_range(const_char_pointer ,const_char_pointer );
28 void clear_range(const_char_pointer ,const_char_pointer );
29
30 void add_category(ECharCategory);
31 void add_category(string);
32 void clear_category(ECharCategory);
33 void clear_category(string);
34
35 void add_class(const ch_class &);
36 void clear_class(const ch_class &);
37 void intersect_class(const ch_class &);
38 void clear();
39 void fill();
40
41 bool in_class(const_char_pointer pszUtf8Char) const;
42
43
44};
45
46/* ***** BEGIN LICENSE BLOCK *****
47 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
48 *
49 * The contents of this file are topic to the Mozilla Public License Version
50 * 1.1 (the "License"); you may not use this file except in compliance with
51 * the License. You may obtain a copy of the License at
52 * http://www.mozilla.org/MPL/
53 *
54 * Software distributed under the License is distributed on an "AS IS" basis,
55 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
56 * for the specific language governing rights and limitations under the
57 * License.
58 *
59 * The Original Code is the Colorer Library.
60 *
61 * The Initial Developer of the Original Code is
62 * Cail Lomecb <[email protected]>.
63 * Portions created by the Initial Developer are Copyright (C) 1999-2005
64 * the Initial Developer.
65 *
66 * Contributor(s):
67 *
68 * Alternatively, the contents of this file may be used under the terms of
69 * either the GNU General Public License Version 2 or later (the "GPL"), or
70 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
71 * in which case the provisions of the GPL or the LGPL are applicable instead
72 * of those above. If you wish to allow use of your version of this file only
73 * under the terms of either the GPL or the LGPL, and not to allow others to
74 * use your version of this file under the terms of the MPL, indicate your
75 * decision by deleting the provisions above and replace them with the notice
76 * and other provisions required by the GPL or the LGPL. If you do not delete
77 * the provisions above, a recipient may use your version of this file under
78 * the terms of any one of the MPL, the GPL or the LGPL.
79 *
80 * ***** END LICENSE BLOCK ***** */
Definition bit_array.h:10
static ch_class * createCharClass(const_char_pointer ccs, character_count pos, character_count *retPos)
Definition ch_class.cpp:39