MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / removeTab

Method removeTab

libraries/LineFormatter/LineFormatter.cpp:172–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172bool LineFormatter::removeTab(uint8_t pos)
173{
174 for (uint8_t i = 0; i < _tabCount; i++)
175 {
176 if (_tabStop[i] == pos)
177 {
178 _tabCount--;
179 while(i < _tabCount)
180 {
181 _tabStop[i] = _tabStop[i + 1];
182 i++;
183 }
184 return true;
185 }
186 }
187 return false;
188}
189
190
191bool LineFormatter::existTab(uint8_t pos)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64