frankfenghua / maashaack

Automatically exported from code.google.com/p/maashaack
0 stars 0 forks source link

Change Strings.compare() arguments ? #56

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We can change the strict:Boolean argument with a options:*

In the method we can use now the options argument with the values :

 * A boolean : default use with the StringComparator and the ignoreCase 
property
 * A StringComparison : like .NET

Pour l'énumération StringComparison nous pouvons regarder :
http://msdn.microsoft.com/en-us/library/system.stringcomparison.aspx

The idea : we can use the StringComparator when the method is invoked 
whitout "options". But if the user use a StringComparison enumeration value 
we can change the nature of the comparison and use other Comparators.

For the moment we have the CharComparator and AlphaComparator( compare two 
Strings with an alphabetical order)

Must speak about it.

Original issue reported on code.google.com by ekamel...@gmail.com on 16 Nov 2008 at 10:04

GoogleCodeExporter commented 8 years ago

Original comment by ekamel...@gmail.com on 16 Nov 2008 at 10:04

GoogleCodeExporter commented 8 years ago

Original comment by ekamel...@gmail.com on 18 Nov 2008 at 11:05

GoogleCodeExporter commented 8 years ago

Original comment by zwetan on 1 Dec 2008 at 12:25

GoogleCodeExporter commented 8 years ago
We can see this change in the next revision is not important for the moment 
isn't it ?

Original comment by ekamel...@gmail.com on 31 Jul 2009 at 7:57

GoogleCodeExporter commented 8 years ago

Original comment by zwetan on 24 Sep 2011 at 5:11