29 {
31
32 string line_content = "";
33 string param_name = "";
34 string param_value = "";
36 int pos_sep = -1;
37
38 for ( int i = 0; i < file_content.Count(); ++i )
39 {
40 line_content = file_content.Get(i);
41
43
44 if ( param_content.Count() == 0 )
45 {
47 return false;
48 }
49
50 param_name = param_content.Get(0);
51 param_value = param_content.Get(1);
52
53
54
57
58
59
61
62 if ( array_items.Count() > 0 )
63 {
65
66 for ( int j = 0; j < array_items.Count(); ++j )
67 {
68 string array_content = array_items.Get(j);
69
70
71 array_content_raw.Clear();
72
74
75
76
77
78 if ( array_content_raw.Count() > 0 )
79 {
81 {
83 }
84
87
88 for ( int k = 0; k < array_content_raw.Count(); ++k )
89 {
90 string params = array_content_raw.Get(k);
92
93 if ( p.Count() == 2 )
94 {
95 parameters.Set(p.Get(0), p.Get(1));
96 }
97 }
98
99 params_in_array.Insert(parameters);
100 }
101 }
102 }
103 else
104 {
106 }
107 }
108
109 return true;
110 }
TStringArray ParseTextToArray(string text, out TStringArray ret)
override string GetFileName()
ref map< string, ref array< ref map< string, string > > > m_ConfigParamsArrayInArray
TStringArray ParseTextToParameter(string text)
ref map< string, string > m_ConfigParams
ref map< string, ref TStringArray > m_ConfigParamsArray
array< string > TStringArray
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.