sources/coloredline.cpp

changeset 182
20ca0a6be175
parent 181
e254398fcc7c
child 183
9b6a0daedfc0
equal deleted inserted replaced
181:e254398fcc7c 182:20ca0a6be175
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 = m_incomingColorName.toLowerCase(); 130 String color = to_lowercase(m_incomingColorName);
131 131
132 for (const ColorCodeInfo &colorInfo : colorCodes) 132 for (const ColorCodeInfo &colorInfo : colorCodes)
133 { 133 {
134 if (String(colorInfo.name).toLowerCase() == color) 134 if (to_lowercase(colorInfo.name) == color)
135 { 135 {
136 activateColor(colorInfo.color, colorInfo.bold); 136 activateColor(colorInfo.color, colorInfo.bold);
137 m_colorCodeStage = 0; 137 m_colorCodeStage = 0;
138 break; 138 break;
139 } 139 }

mercurial