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

Method to_title

library/cpp/containers/cow_string/cow_string.cpp:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97template <>
98bool TBasicCowString<char, std::char_traits<char>>::to_title(size_t pos, size_t n) {
99 if (n == 0) {
100 return false;
101 }
102 bool changed = to_upper(pos, 1);
103 return to_lower(pos + 1, n - 1) || changed;
104}
105
106template <>
107TUtf16CowString&

Callers 1

cow_string.hFile · 0.45

Calls 10

to_upperFunction · 0.85
to_lowerFunction · 0.85
SkipSymbolFunction · 0.85
WriteSymbolFunction · 0.85
DetachAndFixPointersFunction · 0.70
ToLowerFunction · 0.50
ReadSymbolFunction · 0.50
ToTitleFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected