MCPcopy Create free account
hub / github.com/catboost/catboost / to_title

Method to_title

util/generic/string.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <>
31bool TBasicString<char, std::char_traits<char>>::to_title(size_t pos, size_t n) {
32 if (n == 0) {
33 return false;
34 }
35 bool changed = to_upper(pos, 1);
36 return to_lower(pos + 1, n - 1) || changed;
37}
38
39template <>
40TUtf16String&

Callers 3

TestFuncsMethod · 0.45
string.hFile · 0.45
TestWideStringMethod · 0.45

Calls 3

to_upperFunction · 0.85
to_lowerFunction · 0.85
ToTitleFunction · 0.50

Tested by 2

TestFuncsMethod · 0.36
TestWideStringMethod · 0.36