diff options
author | Ralph Amissah <ralph@amissah.com> | 2016-07-02 00:22:17 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-04 14:48:18 -0400 |
commit | 951d136957c14bed5581a11fe41bdebd174d5ce8 (patch) | |
tree | a1e89be8661bc35a53104a2428dbd95de9a970e2 /src/sdp/ao_conf_make_meta.d | |
parent | rename files ao_conf_make_meta.d from ao_header_extract.d (org/ output) (diff) |
file renaming, whitespace cleaning
Diffstat (limited to 'src/sdp/ao_conf_make_meta.d')
-rw-r--r-- | src/sdp/ao_conf_make_meta.d | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/sdp/ao_conf_make_meta.d b/src/sdp/ao_conf_make_meta.d new file mode 100644 index 0000000..f78d7c4 --- /dev/null +++ b/src/sdp/ao_conf_make_meta.d @@ -0,0 +1,25 @@ +/+ + 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(); + writeln(__LINE__); + 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)); + writeln(__LINE__); + static assert(!isTypeTuple!(header_make_and_meta_tuple)); + return header_make_and_meta_tuple; + } + } +} |