From b50f955cfd7da6e4cd680c7ed9094f4313164969 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 12 Jan 2011 10:52:35 -0300 Subject: [PATCH 1/2] Standardise source file header. --- Foundation/CPScanner.j | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/Foundation/CPScanner.j b/Foundation/CPScanner.j index 7ac6e3043..5973d83e0 100644 --- a/Foundation/CPScanner.j +++ b/Foundation/CPScanner.j @@ -1,9 +1,24 @@ -// CPScanner.j -// © Emanuele Vulcano, 2008. -// -// Licensed under the terms of Cappuccino's license -// (the GNU Lesser General Public License, version 2.1). -// Please see Cappuccino's LICENSE file for details. +/* + * CPScanner.j + * Foundation + * + * Created by Emanuele Vulcano. + * Copyright 2008, Emanuele Vulcano. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ @import From 9a76b4451f5729798ef33ee443e1aa583c1332c0 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 12 Jan 2011 10:54:47 -0300 Subject: [PATCH 2/2] Cleanup. --- Foundation/CPString.j | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Foundation/CPString.j b/Foundation/CPString.j index 3955ab1c5..246686b94 100644 --- a/Foundation/CPString.j +++ b/Foundation/CPString.j @@ -138,7 +138,7 @@ var CPStringRegexSpecialCharacters = [ */ - (id)initWithString:(CPString)aString { - if ([self class] === CPString) + if ([self class] === CPString) return String(aString); var result = new String(aString); @@ -807,10 +807,10 @@ var CPStringRegexSpecialCharacters = [ @end -var diacritics = [[192,198],[224,230],[231,231],[232,235],[236,239],[242,246],[249,252]]; // Basic Latin ; Latin-1 Supplement. -var normalized = [65,97,99,101,105,111,117]; +var diacritics = [[192,198],[224,230],[231,231],[232,235],[236,239],[242,246],[249,252]], // Basic Latin ; Latin-1 Supplement. + normalized = [65,97,99,101,105,111,117]; -String.prototype.stripDiacritics = function () +String.prototype.stripDiacritics = function() { var output = ""; for (var indexSource = 0; indexSource < this.length; indexSource++)