R
rk
Hi there,
I'm creating a console program that will process command line
switches. When checking whether a switch exists on the command line
(for example "/input"), should I use CurrentCulture, InvariantCulture,
or something else?
I want it to match under all of the following circumstances:
1) User types in the keys i-n-p-u-t using any casing, and under any
culture/language.
In Turkish, for example, an uppercase i is actually an I with a dot on
top. I'm assuming the special I-dot character is what the console
reads from the keyboard when they hold shift and press i.
2) Invoked from a batch file created using a different language/
culture.
Here's where it gets tricky. Let's say a user in North America writes
a batch file and shares it with his Turkish friend. Now I want the
string to match BOTH the Turkish INPUT (dotted i) and the North
American INPUT (non-dotted i).
Is there an easy way to get the comparison result I want?
Thanks,
Richard Kagerer
(Missing the days when the = sign was straightforward)
I'm creating a console program that will process command line
switches. When checking whether a switch exists on the command line
(for example "/input"), should I use CurrentCulture, InvariantCulture,
or something else?
I want it to match under all of the following circumstances:
1) User types in the keys i-n-p-u-t using any casing, and under any
culture/language.
In Turkish, for example, an uppercase i is actually an I with a dot on
top. I'm assuming the special I-dot character is what the console
reads from the keyboard when they hold shift and press i.
2) Invoked from a batch file created using a different language/
culture.
Here's where it gets tricky. Let's say a user in North America writes
a batch file and shares it with his Turkish friend. Now I want the
string to match BOTH the Turkish INPUT (dotted i) and the North
American INPUT (non-dotted i).
Is there an easy way to get the comparison result I want?
Thanks,
Richard Kagerer
(Missing the days when the = sign was straightforward)