acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
string_list.h
1#pragma once
2
3
4#include "acme/prototype/collection/comparable_list.h"
5
6
7
8class CLASS_DECL_ACME string_list_base :
9 public comparable_list_base < ::string >
10{
11public:
12
13
14 using RANGE = typename ::list_base < ::string >::RANGE;
15
16
17 string_list_base();
18 ~string_list_base();
19
20
21 void explode(const ::scoped_string & scopedstrSeparator, const ::scoped_string & scopedstr);
22
23 void implode(string & str, const ::scoped_string & scopedstrSeparator = nullptr, ::collection::index iStart = 0, ::collection::count iCount = -1) const;
24
25 string implode(const ::scoped_string & scopedstrSeparator = nullptr, ::collection::index iStart = 0, ::collection::count iCount = -1) const;
26
27 void reverse_implode(string & str, const ::scoped_string & scopedstrSeparator = nullptr, ::collection::index iStart = 0, ::collection::count iCount = -1) const;
28
29 string reverse_implode(const ::scoped_string & scopedstrSeparator = nullptr, ::collection::index iStart = 0, ::collection::count iCount = -1) const;
30
31 void add_tail_tokens(const ::scoped_string & scopedstr, const ::scoped_string & scopedstrSeparator, bool bAddEmpty);
32
33
34 //virtual ::stream & read(::stream & stream) override;
35 //virtual ::stream & write(::stream & stream) const override;
36
37
38};
39
40
41
42//template < typename TYPE >
43//inline stream& operator <<(stream& stream, const string_list_base& list_base);
44//
45//
46//template < typename TYPE >
47//inline stream& operator >>(stream& stream, string_list_base& list_base);
48
49
50
51
Definition comparable_list.h:11