| 42 | } |
| 43 | |
| 44 | void CamelCaseToUnderscoreCase(TStringBuilderBase* builder, TStringBuf str) |
| 45 | { |
| 46 | bool first = true; |
| 47 | for (char c : str) { |
| 48 | if (std::isupper(c) && std::isalpha(c)) { |
| 49 | if (!first) { |
| 50 | builder->AppendChar('_'); |
| 51 | } |
| 52 | c = std::tolower(c); |
| 53 | } |
| 54 | builder->AppendChar(c); |
| 55 | first = false; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | TString CamelCaseToUnderscoreCase(TStringBuf str) |
| 60 | { |
no test coverage detected