Skip to content

Case insensitive option for ContainsKey and getter? #30

@a6874453

Description

@a6874453

Hello, i would like to ask if i can retrieve a value by a key name ignoring the case?

In source engine KeyValues class, this code:

KeyValues *pKV = new KeyValues("Test");
pKV->SetInt("Apple", 5);
Msg("%d %d", pKV->GetInt("apple"), pKV->GetInt("APPLE"));

it prints "5 5", which means the cases are ignored

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions