sources/coloredline.cpp

changeset 183
9b6a0daedfc0
parent 182
20ca0a6be175
child 190
90bf9049e5eb
equal deleted inserted replaced
182:20ca0a6be175 183:9b6a0daedfc0
125 } 125 }
126 else if (m_colorCodeStage == 2) 126 else if (m_colorCodeStage == 2)
127 { 127 {
128 if (ch == ']') 128 if (ch == ']')
129 { 129 {
130 String color = to_lowercase(m_incomingColorName); 130 std::string color = to_lowercase(m_incomingColorName);
131 131
132 for (const ColorCodeInfo &colorInfo : colorCodes) 132 for (const ColorCodeInfo &colorInfo : colorCodes)
133 { 133 {
134 if (to_lowercase(colorInfo.name) == color) 134 if (to_lowercase(colorInfo.name) == color)
135 { 135 {
174 } 174 }
175 } 175 }
176 176
177 // ------------------------------------------------------------------------------------------------- 177 // -------------------------------------------------------------------------------------------------
178 // 178 //
179 void ColoredLine::addString(const String& text) 179 void ColoredLine::addString(const std::string& text)
180 { 180 {
181 for (char a : text) 181 for (char a : text)
182 addChar(a); 182 addChar(a);
183 } 183 }
184 184

mercurial