acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
result.h
1//
2// Created by camilo on 2021-05-07 07:07 BRT <3ThomasBS_!!
3//
4#pragma once
5
6
7
8//#include "acme/prototype/prototype/pointer.h"
9//#include "acme/prototype/collection/string_array.h"
10
11
12namespace regular_expression
13{
14
15
16 class CLASS_DECL_ACME result :
17 virtual public particle
18 {
19 public:
20
21
22 void * m_pResult;
23 ::collection::count m_cMatchData;
24 string m_str;
25 ::regular_expression_pointer m_pregularexpression;
26 ::strsize_range_array m_rangea;
27
28
29 result();
30 ~result() override;
31
32
33 //virtual void compile(const ::scoped_string & scopedstrExpression);
34
35
36 virtual ::collection::count get_count() const;
37
38
39 virtual bool has_match() const;
40
41
42 virtual string get_match(::collection::index iMatch) const;
43
44
45 virtual ::strsize_range_array & get_range_array();
46
47
48 virtual void _get_range_array();
49
50
51 //virtual bool matches(const ::scoped_string & scopedstr, character_count len) = 0;
52
53 //virtual ::collection::count match_count(const ::scoped_string & scopedstr) = 0;
54
55 //virtual ::collection::count match_count(const ::scoped_string & scopedstr, character_count len) = 0;
56
57 //virtual ::pointer<::strsize_range_array>
58
59 //matches_ranges(const ::scoped_string & scopedstr) = 0;
60
61 //virtual ::pointer<::strsize_range_array>
62
63 //matches_ranges(const ::scoped_string & scopedstr, character_count len) = 0;
64
65 //virtual bool replace(string & strFind, const ::scoped_string & scopedstrReplace, string & strResult);
66
67 //virtual ::collection::count matches(string_array_base & stra, const ::scoped_string & scopedstr);
68
69
70 };
71
72
73} // namespace regular_expression
74
75
76