aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/util.h
blob: d93342d3f88e814a615f4dc13c809a8e0dbb96c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <util/generic/string.h>

namespace NProtobufJson {
    void ToSnakeCase(TString* const name);

    void ToSnakeCaseDense(TString* const name);

    /**
     * "FOO_BAR" ~ "foo_bar" ~ "fooBar"
     */
    bool EqualsIgnoringCaseAndUnderscores(TStringBuf s1, TStringBuf s2);
}