MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / strtolower

Function strtolower

src/string.cpp:355–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool strtolower(std::string &str, std::string::size_type offs)
356{
357 bool changed = false;
358 for (auto ch = str.begin() + offs; ch != str.end(); ++ch) {
359 auto new_ch = static_cast<char>(tolower(static_cast<unsigned char>(*ch)));
360 changed |= new_ch != *ch;
361 *ch = new_ch;
362 }
363 return changed;
364}
365
366/**
367 * Only allow certain keys. You can define the filter to be used. This makes

Callers 5

AddFileMethod · 0.85
RandomAccessFileMethod · 0.85
FioFindFullPathFunction · 0.85
FioFOpenFileSpFunction · 0.85
FioFOpenFileFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected