views:

20

answers:

1

I'm working on a string-to-bool parsing function for HaXe (somehow the devs got by until now without one >.<) and i figured the best way to check the string would be ignoring case. I'm not sure how to do that though, can someone help me?

+2  A: 

In std there is not such a function but you can easily add your own:

public static function equalsCI(a : String, b : String) return a.toLowerCase() == b.toLowerCase();

Franco Ponticelli