I would like to create a custom lower / upper case function for wstrings.
Therefore I am using a map of integers.
Currently I am automatically creating a function from these maps:
(...)
else if (iCharCode==65)
{
iRet=97;
}
else if (iCharCode==66)
{
iRet=98;
}
else if (iCharCode==67)
{
iRet=99;
}
else if (iCharCode==68)
{
iRet=100;
}
else if (iCharCode==69)
{
iRet=101;
}
else if (iCharCode==70)
{
iRet=102;
}
else if (iCharCode==42818)
{
iRet=42819;
}
(...)
However, the function is going to be pretty large if I turn my map into a if-statement like this.
I would therefore like a use a real map instead, but I don't want to load it at runtime. I would prefer having a static map, but I am not sure how to do that.
Can somebody share his thoughts?