acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_string.h
1
// Created by camilo on 2023-02-02 02:41 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
5
template
< prototype_container CONTAINER >
6
inline
void
from_string(CONTAINER& container, const ::scoped_string& scopedstr)
7
{
8
9
container.clear();
10
11
::tokenizer
tokenizer
(scopedstr);
12
13
::string strToken;
14
15
while
(
tokenizer
.get_next_token(strToken,
"|"
))
16
{
17
18
typename
CONTAINER::BASE_TYPE
item
;
19
20
::from_string(
item
, strToken);
21
22
container.add(
item
);
23
24
}
25
26
}
27
28
29
30
31
32
CLASS_DECL_ACME
void
erase_sharp_comment(::string_array_base & stra);
item
Definition
item.h:93
tokenizer
Definition
tokenizer.h:6
prototype
collection
_string.h
Generated by
1.17.0