OSDN Git Service

AppliStation,バージョンを1.1.0.*に変更。ソースファイルへのコメントの加筆
[applistation/AppliStation.git] / na-get-lib / NaGet.Packages / VersionComparetor.cs
index 60aa78d..6d94fda 100644 (file)
@@ -1,11 +1,32 @@
-using System;\r
+using System;\r
 using System.Text.RegularExpressions;\r
 \r
 namespace NaGet.Packages\r
 {\r
 using System.Text.RegularExpressions;\r
 \r
 namespace NaGet.Packages\r
 {\r
-       // TODO Debian-apt\82Ì\83R\81[\83h\82ð\97\98\97p\82µ\82Ä\82¢\82é\82Ì\82ÅGPL\82É\82È\82é\82Ì\82É\92\8d\88Ó\r
+       // TODO Debian-aptのコードを利用しているのでGPLになるのに注意\r
        \r
        \r
+       // 引用元: apt-pkg/deb/debversion.cc,v 1.8 2003/09/10 23:39:49 mdz Exp\r
+       //    Debian Version - Versioning system for Debian\r
+       //    This implements the standard Debian versioning system.\r
+       // Copyright (C) yyyy  name of author\r
+       // \r
+       // This program is free software; you can redistribute it and/or\r
+       // modify it under the terms of the GNU General Public License\r
+       // as published by the Free Software Foundation; either version 2\r
+       // of the License, or (at your option) any later version.\r
+       // \r
+       // This program is distributed in the hope that it will be useful,\r
+       // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+       // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+       // GNU General Public License for more details.\r
+       // \r
+       // You should have received a copy of the GNU General Public License\r
+       // along with this program; if not, write to the Free Software\r
+       // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
        \r
        \r
+       /// <summary>\r
+       /// バージョン比較をするためのメソッドを含むクラス\r
+       /// </summary>\r
        public class VersionComparetor : System.Collections.Generic.IComparer<string>\r
        {\r
                public VersionComparetor()\r
        public class VersionComparetor : System.Collections.Generic.IComparer<string>\r
        {\r
                public VersionComparetor()\r
@@ -22,7 +43,7 @@ namespace NaGet.Packages
                \r
                public int Compare(string a, string b)\r
                {\r
                \r
                public int Compare(string a, string b)\r
                {\r
-                       // \91O\8f\88\97\9d\r
+                       // 前処理\r
                        a = a.ToLower();\r
                        b = b.ToLower();\r
                        if (Regex.IsMatch(a, @"\.0*$")) \r
                        a = a.ToLower();\r
                        b = b.ToLower();\r
                        if (Regex.IsMatch(a, @"\.0*$")) \r