From 7d7724a5f5df338e5b60773dd12184eac5ab8e0c Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 13 Aug 2012 15:26:06 +0000 Subject: [PATCH] Monotone-Parent: 56f8217cb19f50d50429b4f745548b63bd418877 Monotone-Revision: 844ddef9e05b2d52503e6a44804f1d3036558771 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-08-13T15:26:06 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/NSString+Utilities.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/SoObjects/SOGo/NSString+Utilities.h b/SoObjects/SOGo/NSString+Utilities.h index a94e48ce6..ef836fa16 100644 --- a/SoObjects/SOGo/NSString+Utilities.h +++ b/SoObjects/SOGo/NSString+Utilities.h @@ -31,6 +31,7 @@ @interface NSString (SOGoURLExtension) +/* URL handling */ - (NSString *) composeURLWithAction: (NSString *) action parameters: (NSDictionary *) urlParameters andHash: (BOOL) useHash; @@ -40,13 +41,21 @@ - (NSString *) stringByDetectingURLs; +/* escaping */ - (NSString *) doubleQuotedString; -- (NSString *) jsonRepresentation; - +/* CSS and URL safety */ - (NSString *) asCSSIdentifier; - (NSString *) fromCSSIdentifier; +/* SQL safety */ +- (NSString *) asSafeSQLString; + +/* JSON */ +- (NSString *) jsonRepresentation; +- (BOOL) isJSONString; +- (id) objectFromJSONString; + /* bare email addresses */ - (NSString *) pureEMailAddress; @@ -54,6 +63,7 @@ - (NSRange) _rangeOfURLInRange: (NSRange) refRange; +/* LDAP */ - (BOOL) caseInsensitiveMatches: (NSString *) match; #ifndef GNUSTEP_BASE_LIBRARY @@ -62,12 +72,6 @@ - (int) timeValue; -- (BOOL) isJSONString; - -- (id) objectFromJSONString; - -- (NSString *) asSafeSQLString; - - (NSUInteger) countOccurrencesOfString: (NSString *) substring;