Filter löschen
Filter löschen

Make containers.Map case insensitive

2 Ansichten (letzte 30 Tage)
Germán
Germán am 9 Mai 2013
As the title says is there a way to make the mapping case insensitive for string valued input keys?
I would like to make mapObj('A') and mapObj('a') map the same values.
I could define the keySet in lower case and then convert the input keys as
mapObj = containers.Map(keySet,valueSet)
mapObj(lower(inputKey))
but is there a better way to do this? Could I build the map to be case insensitive?

Antworten (0)

Kategorien

Mehr zu Cell Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by