From 6d0b245927779e68c2554880ad46d4299d4b11d4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 2 Dec 2015 18:23:00 -0500 Subject: sorting --- org/ao_scan_inserts.org | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'org/ao_scan_inserts.org') diff --git a/org/ao_scan_inserts.org b/org/ao_scan_inserts.org index 8aaf377..f595ea5 100644 --- a/org/ao_scan_inserts.org +++ b/org/ao_scan_inserts.org @@ -1,4 +1,4 @@ -#+TITLE: Emacs config file written in org-mode +#+TITLE: sdp scan inserts #+AUTHOR: Ralph Amissah #+EMAIL: ralph.amissah@gmail.com #+STARTUP: indent @@ -9,11 +9,13 @@ #+OPTIONS: ^:nil _:nil #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport -#+TAGS: Amissah(A) Class(c) WEB(W) noexport(n) #+FILETAGS: :sdp:ao: +#+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n) -* inserts -** scan inserts (sub-document) source +* inserts :inserts: +[[./sdp.org][sdp]] + +** scan inserts (sub-document) source :scan_insert_src: *** scan subdoc source #+name: ao_inserts_scan #+BEGIN_SRC d :exports none @@ -100,8 +102,8 @@ if (ft1["curly_code"] == 1) { markup_sourcesubfile_insert_content.length ); } - auto ins = new Inserts(); - /* + auto ins = new Inserts(); + /+ 1. load file, 2. read lines; 3. scan lines, @@ -109,7 +111,7 @@ if (ft1["curly_code"] == 1) { 5. repeat 1 6. else 7. add line to new array; - */ + +/ } else { ft1["header_make"] = 0; ft1["header_metadata"] = 0; @@ -124,7 +126,8 @@ auto contents_ = cont_arbitrary_max_length_set_[0 .. counter["add"]].dup; auto t = tuple(contents_, add); return t; #+END_SRC -** scan document source + +** scan document source :scan_src: *** scan doc source #+name: ao_doc_scan #+BEGIN_SRC d :exports none @@ -214,16 +217,16 @@ if (ft["curly_code"] == 1) { markup_sourcefile_insert_content.length ); } - auto ins = new Inserts(); - auto t = ins.scan_subdoc_source( - markup_sourcefile_insert_content, to!string(fn_src_insert), add - ); - static assert(!isTypeTuple!(t)); - auto tmparr = t[0]; - auto addsub = t[1]; - cont_arbitrary_max_length_set[add .. addsub-1] = tmparr[0 .. $-1]; - add=addsub; - /* + auto ins = new Inserts(); + auto t = ins.scan_subdoc_source( + markup_sourcefile_insert_content, to!string(fn_src_insert), add + ); + static assert(!isTypeTuple!(t)); + auto tmparr = t[0]; + auto addsub = t[1]; + cont_arbitrary_max_length_set[add .. addsub-1] = tmparr[0 .. $-1]; + add=addsub; + /+ 1. load file, 2. read lines; 3. scan lines, @@ -231,7 +234,7 @@ if (ft["curly_code"] == 1) { 5. repeat 1 6. else 7. add line to new array; - ,*/ + +/ } else { ft["header_make"] = 0; ft["header_metadata"] = 0; @@ -251,14 +254,14 @@ debug(insert) { // insert file return contents; #+END_SRC -* tangles +* tangles :tangle: ** code structure: :ao_inserts.d: #+name: tangle_ao_inserts #+BEGIN_SRC d :tangle ../lib/sdp/ao_scan_inserts.d :padline no :exports none :noweb yes -/* +/+ inserts ao_inserts.d -*/ ++/ mixin template SiSUdocInserts() { class Inserts { auto scan_subdoc_source( -- cgit v1.2.3