blob: 04a9d7a112e6dd955895e0920e5a72a4841f53a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/+
extract native/orig header return associative array
+/
template SiSUheaderExtractHub() {
private import
std.regex;
private import
ao_rgx;
struct HeaderDocMetadataAndMake {
mixin SiSUheaderExtractNative;
mixin SiSUheaderExtractSDLang;
auto rgx = Rgx();
private auto headerContentAA(char[] header_src, string[string][string] conf_doc_make_aa) {
auto head_native = HeaderDocMetadataAndMakeNativeToAA();
auto head_sdlang = HeaderExtractSDL();
auto header_make_and_meta_tuple = (match(header_src, rgx.native_header_meta_title))
? (head_native.headerNativeToAA(header_src))
: (head_sdlang.headerSDLangToAA(header_src, conf_doc_make_aa));
static assert(!isTypeTuple!(header_make_and_meta_tuple));
return header_make_and_meta_tuple;
}
}
}
|