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

Method addTab

libraries/LineFormatter/LineFormatter.cpp:138–149  ·  view source on GitHub ↗

////////////////////////////////////// TAB

Source from the content-addressed store, hash-verified

136// TAB
137//
138bool LineFormatter::addTab(uint8_t pos)
139{
140 if (pos == 0) return false;
141 // full ?
142 if (_tabCount >= MAX_TAB_STOPS) return false;
143 // prevent doubles.
144 if (existTab(pos)) return false;
145
146 _tabStop[_tabCount] = pos;
147 _tabCount++;
148 return true;
149}
150
151
152bool LineFormatter::addRelTab(uint8_t n)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64