--- /dev/null
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Collation", "Collation\Collation.Monodevelop.csproj", "{85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Debug|x86.ActiveCfg = Debug|x86
+ {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Debug|x86.Build.0 = Debug|x86
+ {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Release|x86.ActiveCfg = Release|x86
+ {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = Collation.csproj
+ EndGlobalSection
+EndGlobal
--- /dev/null
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30110.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Collation", "Collation\Collation.Windows8.csproj", "{19C2AA8B-1FE5-49B8-A12D-0CFBC478EEC9}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {19C2AA8B-1FE5-49B8-A12D-0CFBC478EEC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {19C2AA8B-1FE5-49B8-A12D-0CFBC478EEC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {19C2AA8B-1FE5-49B8-A12D-0CFBC478EEC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {19C2AA8B-1FE5-49B8-A12D-0CFBC478EEC9}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
- <ProductVersion>10.0.0</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <RootNamespace>Collation</RootNamespace>
- <AssemblyName>Collation</AssemblyName>
- <Description>Collation with Mono and C#</Description>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG;</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <Externalconsole>true</Externalconsole>
- <PlatformTarget>x86</PlatformTarget>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
- <DebugType>full</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <Externalconsole>true</Externalconsole>
- <PlatformTarget>x86</PlatformTarget>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Program.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-</Project>
\ No newline at end of file
+++ /dev/null
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Collation", "Collation.csproj", "{85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x86 = Debug|x86
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Debug|x86.ActiveCfg = Debug|x86
- {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Debug|x86.Build.0 = Debug|x86
- {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Release|x86.ActiveCfg = Release|x86
- {85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}.Release|x86.Build.0 = Release|x86
- EndGlobalSection
- GlobalSection(MonoDevelopProperties) = preSolution
- StartupItem = Collation.csproj
- EndGlobalSection
-EndGlobal
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
+ </startup>
+</configuration>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{85DE1B80-0DFF-4B75-A84C-91BF5E5DAAF0}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>Collation</RootNamespace>
+ <AssemblyName>Collation</AssemblyName>
+ <Description>Collation with Mono and C#</Description>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <Externalconsole>true</Externalconsole>
+ <PlatformTarget>x86</PlatformTarget>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <Externalconsole>true</Externalconsole>
+ <PlatformTarget>x86</PlatformTarget>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{19C2AA8B-1FE5-49B8-A12D-0CFBC478EEC9}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Collation.Windows8</RootNamespace>
+ <AssemblyName>Collation.Windows8</AssemblyName>
+ <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null
+using System;
+using System.Globalization;
+using System.Collections;
+
+namespace Collation
+{
+ class MainClass
+ {
+ public static void Main (string[] args)
+ {
+ string string1 = "hello gus";
+ string string2 = "HELLO GUS";
+ int compareResult = 0;
+
+ // Like Java String.compareTo (without culture,
+ // using unicode values directly)
+ compareResult = String.Compare(string1, string2,
+ StringComparison.Ordinal);
+ Console.WriteLine("{0} comparison of '{1}' and '{2}': {3}",
+ StringComparison.Ordinal, string1, string2,
+ compareResult);
+
+ // Like Java String.compareToIgnoreCase (without culture,
+ // using unicode values directly)
+ compareResult = String.Compare(string1, string2,
+ StringComparison.OrdinalIgnoreCase);
+ Console.WriteLine("{0} comparison of '{1}' and '{2}': {3}",
+ StringComparison.OrdinalIgnoreCase, string1, string2,
+ compareResult);
+
+ // Like Java String.toLowerCase(Locale.ENGLISH)
+ string key = "HELLO GUS";
+ string lowerKey = key.ToLower (CultureInfo.InvariantCulture);
+ Console.WriteLine ("Key: {0}", lowerKey);
+
+ string[] words = {"cote", "coté", "côte", "côté"};
+
+ // C# unlike Java does not implement Levels/Strengths collation configurations.
+ // It always uses the five levels, see: Mono.Globalization.Unicode/SimpleCollator.cs
+
+ // InvariantCulture: English like Java: Locale.ENGLISH
+ Array.Sort (words, StringComparer.InvariantCulture);
+ Console.WriteLine("Words list Invariant: ");
+ printValues (words);
+
+ // without culture, using unicode values directly
+ Array.Sort (words, StringComparer.Ordinal);
+ Console.WriteLine("Words list Ordinal: ");
+ printValues (words);
+
+ // like Java new Locale("es","ES")
+ CultureInfo cultureES = CultureInfo.CreateSpecificCulture ("es-ES");
+ IComparer cultureComparerES =new CaseInsensitiveComparer (cultureES);
+ Array.Sort (words, cultureComparerES);
+ Console.WriteLine("Words list ES: ");
+ printValues (words);
+
+ CultureInfo cultureFR = CultureInfo.CreateSpecificCulture ("fr-FR");
+ IComparer cultureComparerFR =new CaseInsensitiveComparer (cultureFR);
+ Array.Sort (words, cultureComparerFR);
+ Console.WriteLine("Words list FR: ");
+ printValues (words);
+
+ // It is the same word in German, as expected.
+ // I DO NOT GET THE SAME RESULTS FOR THIS COMPARISON USING JAVA!!!! O.o WTF!!! :(
+ string[] strasse = {"strasse", "straße" };
+ Console.WriteLine("strasse ");
+ int result = String.Compare(strasse[0], strasse[1], CultureInfo.CreateSpecificCulture("de-DE"), CompareOptions.IgnoreCase);
+ Console.WriteLine("German result: {0}", result);
+ // And also in Spanish... why in Spanish is the same word? O.o
+ result = String.Compare(strasse[0], strasse[1], CultureInfo.GetCultureInfo("es-ES"), CompareOptions.IgnoreCase);
+ Console.WriteLine("Spanish result: {0}", result);
+
+ // Shouldn't it be the same word in German?
+ // IN THIS CASE I GET THE SAME RESULTS USING JAVA :)
+ string[] koennen = {"können", "koennen" };
+ Console.WriteLine("koennen ");
+ result = String.Compare(koennen[0], koennen[1], CultureInfo.CreateSpecificCulture("de-DE"), CompareOptions.IgnoreCase);
+ Console.WriteLine("German result: {0}", result);
+ // Neither in German nor in Spanish they are the same word. I do not understand collations :(
+ result = String.Compare(koennen[0], koennen[1], CultureInfo.GetCultureInfo("es-ES"), CompareOptions.IgnoreCase);
+ Console.WriteLine("Spanish result: {0}", result);
+
+ Console.ReadLine();
+ }
+
+ private static void printValues(string[] words)
+ {
+ foreach (var word in words)
+ {
+ Console.Write ("{0} ", word);
+ }
+
+ Console.WriteLine ();
+ }
+ }
+}
--- /dev/null
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// La información general sobre un ensamblado se controla mediante el siguiente
+// conjunto de atributos. Cambie estos atributos para modificar la información
+// asociada con un ensamblado.
+[assembly: AssemblyTitle("Collation.Windows8")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Collation.Windows8")]
+[assembly: AssemblyCopyright("Copyright © 2014")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Si establece ComVisible como false, los tipos de este ensamblado no estarán visibles
+// para los componentes COM. Si necesita obtener acceso a un tipo de este ensamblado desde
+// COM, establezca el atributo ComVisible como true en este tipo.
+[assembly: ComVisible(false)]
+
+// El siguiente GUID sirve como identificador de typelib si este proyecto se expone a COM
+[assembly: Guid("b7e2adaa-1fed-4ede-953b-7e48d1da2261")]
+
+// La información de versión de un ensamblado consta de los cuatro valores siguientes:
+//
+// Versión principal
+// Versión secundaria
+// Número de compilación
+// Revisión
+//
+// Puede especificar todos los valores o establecer como predeterminados los números de compilación y de revisión
+// mediante el carácter '*', como se muestra a continuación:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
+++ /dev/null
-using System;
-using System.Globalization;
-using System.Collections;
-
-namespace Collation
-{
- class MainClass
- {
- public static void Main (string[] args)
- {
- string string1 = "hello gus";
- string string2 = "HELLO GUS";
- int compareResult = 0;
-
- // Like Java String.compareTo (without culture,
- // using unicode values directly)
- compareResult = String.Compare(string1, string2,
- StringComparison.Ordinal);
- Console.WriteLine("{0} comparison of '{1}' and '{2}': {3}",
- StringComparison.Ordinal, string1, string2,
- compareResult);
-
- // Like Java String.compareToIgnoreCase (without culture,
- // using unicode values directly)
- compareResult = String.Compare(string1, string2,
- StringComparison.OrdinalIgnoreCase);
- Console.WriteLine("{0} comparison of '{1}' and '{2}': {3}",
- StringComparison.OrdinalIgnoreCase, string1, string2,
- compareResult);
-
- // Like Java String.toLowerCase(Locale.ENGLISH)
- string key = "HELLO GUS";
- string lowerKey = key.ToLower (CultureInfo.InvariantCulture);
- Console.WriteLine ("Key: {0}", lowerKey);
-
- string[] words = {"cote", "coté", "côte", "côté"};
-
- // C# unlike Java does not implement Levels/Strengths collation configurations.
- // It always uses the five levels, see: Mono.Globalization.Unicode/SimpleCollator.cs
-
- // InvariantCulture: English like Java: Locale.ENGLISH
- Array.Sort (words, StringComparer.InvariantCulture);
- Console.WriteLine("Words list Invariant: ");
- printValues (words);
-
- // without culture, using unicode values directly
- Array.Sort (words, StringComparer.Ordinal);
- Console.WriteLine("Words list Ordinal: ");
- printValues (words);
-
- // like Java new Locale("es","ES")
- CultureInfo cultureES = CultureInfo.CreateSpecificCulture ("es-ES");
- IComparer cultureComparerES =new CaseInsensitiveComparer (cultureES);
- Array.Sort (words, cultureComparerES);
- Console.WriteLine("Words list ES: ");
- printValues (words);
-
- CultureInfo cultureFR = CultureInfo.CreateSpecificCulture ("fr-FR");
- IComparer cultureComparerFR =new CaseInsensitiveComparer (cultureFR);
- Array.Sort (words, cultureComparerFR);
- Console.WriteLine("Words list FR: ");
- printValues (words);
-
- // It is the same word in German, as expected.
- // I DO NOT GET THE SAME RESULTS FOR THIS COMPARISON USING JAVA!!!! O.o WTF!!! :(
- string[] strasse = {"strasse", "straße" };
- Console.WriteLine("strasse ");
- int result = String.Compare(strasse[0], strasse[1], CultureInfo.CreateSpecificCulture("de-DE"), CompareOptions.IgnoreCase);
- Console.WriteLine("German result: {0}", result);
- // And also in Spanish... why in Spanish is the same word? O.o
- result = String.Compare(strasse[0], strasse[1], CultureInfo.GetCultureInfo("es-ES"), CompareOptions.IgnoreCase);
- Console.WriteLine("Spanish result: {0}", result);
-
- // Shouldn't it be the same word in German?
- // IN THIS CASE I GET THE SAME RESULTS USING JAVA :)
- string[] koennen = {"können", "koennen" };
- Console.WriteLine("koennen ");
- result = String.Compare(koennen[0], koennen[1], CultureInfo.CreateSpecificCulture("de-DE"), CompareOptions.IgnoreCase);
- Console.WriteLine("German result: {0}", result);
- // Neither in German nor in Spanish they are the same word. I do not understand collations :(
- result = String.Compare(koennen[0], koennen[1], CultureInfo.GetCultureInfo("es-ES"), CompareOptions.IgnoreCase);
- Console.WriteLine("Spanish result: {0}", result);
- }
-
- private static void printValues(string[] words)
- {
- foreach (var word in words)
- {
- Console.Write ("{0} ", word);
- }
-
- Console.WriteLine ();
- }
- }
-}