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

Method setLength

libraries/Soundex/Soundex.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20void Soundex::setLength(uint8_t length)
21{
22 _length = length;
23 if (_length < SOUNDEX_MIN_LENGTH)
24 {
25 _length = SOUNDEX_MIN_LENGTH;
26 }
27 else if (_length > (SOUNDEX_MAX_LENGTH - 1))
28 {
29 _length = SOUNDEX_MAX_LENGTH - 1;
30 }
31};
32
33
34char * Soundex::soundex(const char * str)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64