forgot some exports
parent
b3e31c1d25
commit
b5568456a5
|
@ -756,7 +756,7 @@ namespace util {
|
|||
CsState &cs, ostd::ConstCharRange str
|
||||
);
|
||||
|
||||
struct ListParser {
|
||||
struct OSTD_EXPORT ListParser {
|
||||
ostd::ConstCharRange input;
|
||||
ostd::ConstCharRange quote = ostd::ConstCharRange();
|
||||
ostd::ConstCharRange item = ostd::ConstCharRange();
|
||||
|
@ -775,11 +775,11 @@ private:
|
|||
CsState &p_state;
|
||||
};
|
||||
|
||||
ostd::Size list_length(CsState &cs, ostd::ConstCharRange s);
|
||||
ostd::Maybe<CsString> list_index(
|
||||
OSTD_EXPORT ostd::Size list_length(CsState &cs, ostd::ConstCharRange s);
|
||||
OSTD_EXPORT ostd::Maybe<CsString> list_index(
|
||||
CsState &cs, ostd::ConstCharRange s, ostd::Size idx
|
||||
);
|
||||
CsVector<CsString> list_explode(
|
||||
OSTD_EXPORT CsVector<CsString> list_explode(
|
||||
CsState &cs, ostd::ConstCharRange s, ostd::Size limit = -1
|
||||
);
|
||||
|
||||
|
|
|
@ -387,7 +387,7 @@ endblock:
|
|||
return s;
|
||||
}
|
||||
|
||||
ostd::Size list_length(CsState &cs, ostd::ConstCharRange s) {
|
||||
OSTD_EXPORT ostd::Size list_length(CsState &cs, ostd::ConstCharRange s) {
|
||||
ListParser p(cs, s);
|
||||
ostd::Size ret = 0;
|
||||
while (p.parse()) {
|
||||
|
@ -396,7 +396,7 @@ endblock:
|
|||
return ret;
|
||||
}
|
||||
|
||||
ostd::Maybe<CsString> list_index(
|
||||
OSTD_EXPORT ostd::Maybe<CsString> list_index(
|
||||
CsState &cs, ostd::ConstCharRange s, ostd::Size idx
|
||||
) {
|
||||
ListParser p(cs, s);
|
||||
|
@ -411,7 +411,7 @@ endblock:
|
|||
return ostd::move(p.element());
|
||||
}
|
||||
|
||||
CsVector<CsString> list_explode(
|
||||
OSTD_EXPORT CsVector<CsString> list_explode(
|
||||
CsState &cs, ostd::ConstCharRange s, ostd::Size limit
|
||||
) {
|
||||
CsVector<CsString> ret;
|
||||
|
|
Loading…
Reference in New Issue