]> err.no Git - scalable-opengroupware.org/commitdiff
moved some code to NGiCal
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 19 Oct 2004 22:14:07 +0000 (22:14 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 19 Oct 2004 22:14:07 +0000 (22:14 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@412 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGoLogic/ChangeLog
SOGoLogic/GNUmakefile
SOGoLogic/NSString+iCal.h
SOGoLogic/NSString+iCal.m [deleted file]
SOGoLogic/Version

index 7d9cc6ebd04030e626f96a369311419465b76e43..b34384bdc31c030142c8e25c31b244114d073b2f 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-20  Helge Hess  <helge.hess@opengroupware.org>
+
+       * moved NSString+iCal methods to NGiCal (v0.9.23)
+
 2004-10-19  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * AgenorUserManager.[hm]: added an interface to retrieve the IMAP
index 70483fc6bb0d5a74518bd22cbc10094aa109aaf4..76c923d519bc484142d20f1a43b781d587a44a30 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# GNUstep Makefile
 
 include $(GNUSTEP_MAKEFILES)/common.make
 include ./Version
@@ -19,7 +19,6 @@ libSOGoLogic_OBJC_FILES += \
        SOGoAppointment.m               \
        SOGoAppointmentICalRenderer.m   \
        AgenorUserManager.m             \
-       NSString+iCal.m
 
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/library.make
index 2d7cfdca38de7769d81e2c6ba251554bf87bd257..f8d29ccf88d541f5efa861360cf8d1ffd6263dec 100644 (file)
 #ifndef        __NSString_iCal_H_
 #define        __NSString_iCal_H_
 
+// DEPRECATED
 
 #import <Foundation/Foundation.h>
-
-
-@interface NSString (SOGoiCal)
-
-- (NSString *)iCalDQUOTESafeString;
-- (NSString *)iCalSafeString;
-- (NSString *)iCalEscapedStringWithEscapeSet:(NSCharacterSet *)_es;
-    
-@end
+#include <NGiCal/iCalRenderer.h>
 
 #endif /* __NSString_iCal_H_ */
diff --git a/SOGoLogic/NSString+iCal.m b/SOGoLogic/NSString+iCal.m
deleted file mode 100644 (file)
index 898d2e5..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
-  Copyright (C) 2000-2004 SKYRIX Software AG
-
-  This file is part of OGo
-
-  OGo 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, or (at your option) any
-  later version.
-
-  OGo 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 OGo; see the file COPYING.  If not, write to the
-  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-  02111-1307, USA.
-*/
-// $Id$
-
-
-#import "NSString+iCal.h"
-
-
-@interface NSString (SOGoiCal_Private)
-- (NSString *)iCalCleanString;
-@end
-
-#include "common.h"
-
-@interface SOGoICalStringEscaper : NSObject <NGStringEscaping>
-{
-}
-+ (id)sharedEscaper;
-@end
-
-@implementation SOGoICalStringEscaper
-+ (id)sharedEscaper {
-  static id sharedInstance = nil;
-  if(!sharedInstance) {
-    sharedInstance = [[self alloc] init];
-  }
-  return sharedInstance;
-}
-
-- (NSString *)stringByEscapingString:(NSString *)_s {
-  unichar c;
-
-  if(!_s || [_s length] == 0)
-    return nil;
-
-  c = [_s characterAtIndex:0];
-  if(c == '\n') {
-    return @"\\n";
-  }
-  else if(c == '\r') {
-    return nil; /* effectively remove char */
-  }
-  return [NSString stringWithFormat:@"\\%@", _s];
-}
-
-@end
-
-@implementation NSString (SOGoiCal)
-
-#if 0
-- (NSString *)iCalFoldedString {
-  /* RFC2445, 4.1 Content Lines
-  
-  The iCalendar object is organized into individual lines of text,
-  called content lines. Content lines are delimited by a line break,
-  which is a CRLF sequence (US-ASCII decimal 13, followed by US-ASCII
-                            decimal 10).
-  Lines of text SHOULD NOT be longer than 75 octets, excluding the line
-  break. Long content lines SHOULD be split into a multiple line
-  representations using a line "folding" technique. That is, a long
-  line can be split between any two characters by inserting a CRLF
-  immediately followed by a single linear white space character (i.e.,
-  SPACE, US-ASCII decimal 32 or HTAB, US-ASCII decimal 9).
-  Any sequence of CRLF followed immediately by a single linear white space
-  character is ignored (i.e., removed) when processing the content type.
-  */
-}
-#endif
-
-/* strip off any characters from string which are not allowed in iCal */
-- (NSString *)iCalCleanString {
-  static NSCharacterSet *replaceSet = nil;
-
-  if(replaceSet == nil) {
-    replaceSet = [NSCharacterSet characterSetWithCharactersInString:@"\r"];
-    [replaceSet retain];
-  }
-  
-  return [self stringByEscapingCharactersFromSet:replaceSet
-               usingStringEscaping:[SOGoICalStringEscaper sharedEscaper]];
-}
-
-- (NSString *)iCalDQUOTESafeString {
-  static NSCharacterSet *escapeSet = nil;
-  
-  if(escapeSet == nil) {
-    escapeSet = [NSCharacterSet characterSetWithCharactersInString:@"\\\""];
-    [escapeSet retain];
-  }
-  return [self iCalEscapedStringWithEscapeSet:escapeSet];
-}
-
-- (NSString *)iCalSafeString {
-  static NSCharacterSet *escapeSet = nil;
-  
-  if(escapeSet == nil) {
-    escapeSet = [NSCharacterSet characterSetWithCharactersInString:@"\n,;\\\""];
-    [escapeSet retain];
-  }
-  return [self iCalEscapedStringWithEscapeSet:escapeSet];
-}
-
-/* Escape unsafe characters */
-- (NSString *)iCalEscapedStringWithEscapeSet:(NSCharacterSet *)_es {
-  NSString *s;
-
-  s = [self iCalCleanString];
-  return [s stringByEscapingCharactersFromSet:_es
-            usingStringEscaping:[SOGoICalStringEscaper sharedEscaper]];
-}
-
-@end
index 79ebcd59330ff69b78e6289cd06ea317d3956040..b280814040ad9c9f7d217404b081392f7d2dcace 100644 (file)
@@ -1,6 +1,7 @@
-# $Id$
+# Version file
 
-SUBMINOR_VERSION:=22
+SUBMINOR_VERSION:=23
 
+# v0.9.23 requires NGiCal        v4.3.32
 # v0.9.18 requires NGExtensions  v4.3.123
 # v0.9.13 requires libFoundation v1.0.62