aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_misc.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-05-14 11:35:24 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-08-19 14:42:43 -0400
commit24c9ed3645178a6ee2abbd9201fa4643dba068e2 (patch)
tree37cd2dbe489d8ab850fd814cdec63004c9a3150c /org/default_misc.org
parentdoc_abstraction reduce use of return ref, check (diff)
review, reduce use of auto
Diffstat (limited to 'org/default_misc.org')
-rw-r--r--org/default_misc.org72
1 files changed, 36 insertions, 36 deletions
diff --git a/org/default_misc.org b/org/default_misc.org
index 6866c85..8c901ca 100644
--- a/org/default_misc.org
+++ b/org/default_misc.org
@@ -86,7 +86,7 @@ template DocReformRgxInitFlags() {
#+BEGIN_SRC d
template DocReformNode() {
static string[string] node_metadata_heading_str() {
- auto _node = [
+ string[string] _node = [
"is" : "",
"ocn" : "",
"marked_up_lev" : "",
@@ -97,7 +97,7 @@ template DocReformNode() {
return _node;
}
static int[string] node_metadata_heading_int() {
- auto _node = [
+ int[string] _node = [
"ocn" : 0, // decide whether to use or keep?
"ptr_doc_object" : 0,
"ptr_html_segnames" : 0,
@@ -110,7 +110,7 @@ template DocReformNode() {
return _node;
}
static string[string] node_metadata_para_str() {
- auto _node = [
+ string[string] _node = [
"is" : "",
"ocn" : "",
"attrib" : "",
@@ -118,7 +118,7 @@ template DocReformNode() {
return _node;
}
static int[string] node_metadata_para_int() {
- auto _node = [
+ int[string] _node = [
"ocn" : 0,
"indent_base" : 0,
"indent_hang" : 0,
@@ -225,36 +225,36 @@ import
template InternalMarkup() {
import std.array;
static struct InlineMarkup {
- auto en_a_o = "【"; auto en_a_c = "】";
- auto en_b_o = "〖"; auto en_b_c = "〗";
- auto quote_o = "“"; auto quote_c = "”";
- auto ff_o = "┨"; auto ff_c = "┣"; // fontface
- auto lnk_o = "┥"; auto lnk_c = "┝";
- auto url_o = "┤"; auto url_c = "├";
- auto emph = "*";
- auto bold = "!";
- auto italic = "/";
- auto underscore = "_";
- auto superscript = "^";
- auto subscript = ",";
- auto mono = "■";
- auto cite = "‖";
- auto mark_internal_site_lnk = "¤";
- auto nbsp = "░";
- auto br_line = "┘";
- auto br_nl = "┙";
- auto br_paragraph = "┚";
- auto br_obj = "break_obj";
- auto br_page_line = "┼";
- auto br_page = "┿";
- auto br_page_new = "╂";
- auto tc_s = "┊";
- auto tc_o = "┏";
- auto tc_c = "┚";
- auto tc_p = "┆";
- auto img = "☼";
- auto on_o = "「"; auto on_c = "」";
- auto mk_bullet = "● ";
+ string en_a_o = "【"; string en_a_c = "】";
+ string en_b_o = "〖"; string en_b_c = "〗";
+ string quote_o = "“"; string quote_c = "”";
+ string ff_o = "┨"; string ff_c = "┣"; // fontface
+ string lnk_o = "┥"; string lnk_c = "┝";
+ string url_o = "┤"; string url_c = "├";
+ string emph = "*";
+ string bold = "!";
+ string italic = "/";
+ string underscore = "_";
+ string superscript = "^";
+ string subscript = ",";
+ string mono = "■";
+ string cite = "‖";
+ string mark_internal_site_lnk = "¤";
+ string nbsp = "░";
+ string br_line = "┘";
+ string br_nl = "┙";
+ string br_paragraph = "┚";
+ string br_obj = "break_obj";
+ string br_page_line = "┼";
+ string br_page = "┿";
+ string br_page_new = "╂";
+ string tc_s = "┊";
+ string tc_o = "┏";
+ string tc_c = "┚";
+ string tc_p = "┆";
+ string img = "☼";
+ string on_o = "「"; auto on_c = "」";
+ string mk_bullet = "● ";
static string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") {
_indent_spaces = replicate(_indent_spaces, indent);
return _indent_spaces;
@@ -342,11 +342,11 @@ template DocReformLanguageCodes() {
return _lang_codes;
}
static string[] code_arr_ptr() {
- auto _lang_codes = ["am", "bg", "bn", "br", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hy", "ia", "is", "it", "ja", "ko", "la", "lo", "lt", "lv", "ml", "mr", "nl", "no", "nn", "oc", "pl", "pt", "pt_BR", "ro", "ru", "sa", "se", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tk", "tr", "uk", "ur", "us", "vi", "zh", "en", "xx",];
+ string[] _lang_codes = ["am", "bg", "bn", "br", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hy", "ia", "is", "it", "ja", "ko", "la", "lo", "lt", "lv", "ml", "mr", "nl", "no", "nn", "oc", "pl", "pt", "pt_BR", "ro", "ru", "sa", "se", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tk", "tr", "uk", "ur", "us", "vi", "zh", "en", "xx",];
return _lang_codes;
}
static string[] code_arr() {
- auto _lang_codes = ["am", "bg", "bn", "br", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hy", "ia", "is", "it", "ja", "ko", "la", "lo", "lt", "lv", "ml", "mr", "nl", "no", "nn", "oc", "pl", "pt", "pt_BR", "ro", "ru", "sa", "se", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tk", "tr", "uk", "ur", "vi", "zh"];
+ string[] _lang_codes = ["am", "bg", "bn", "br", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hy", "ia", "is", "it", "ja", "ko", "la", "lo", "lt", "lv", "ml", "mr", "nl", "no", "nn", "oc", "pl", "pt", "pt_BR", "ro", "ru", "sa", "se", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tk", "tr", "uk", "ur", "vi", "zh"];
return _lang_codes;
}
static auto codes_() {