Parsing string to protobuf enum with no case-sensitivy

Viewed 1817
1 Answers

If its possible for you to rename enums to the small case like this -

enum MyEnum
{
    tcp = 0;
    http = 1;
    https = 2;
}

Then you could convert the input string to the small case first and then use Enum_Parse()

Related