Revision 2, 0.9 KB
(checked in by jon, 16 years ago)
|
Initial commit of skeletal project.
|
Line | |
---|
1 | // |
---|
2 | // AIURLAdditions.h |
---|
3 | // Adium |
---|
4 | // |
---|
5 | // Created by Evan Schoenberg on Tue Feb 17 2004. |
---|
6 | // Copyright (c) 2004-2005 The Adium Team. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | #import <AIUtilities/AITigerCompatibility.h> |
---|
10 | |
---|
11 | /*! |
---|
12 | * Provides some additional functionality when working with \c NSURL objects. |
---|
13 | */ |
---|
14 | @interface NSURL (AIURLAdditions) |
---|
15 | |
---|
16 | /** |
---|
17 | * @brief Gets the length of the URL. |
---|
18 | * |
---|
19 | * @return The length (number of characters) of the URL. |
---|
20 | */ |
---|
21 | - (NSUInteger)length; |
---|
22 | |
---|
23 | /*! |
---|
24 | * @brief Returns the argument for the specified key in the query string component of |
---|
25 | * the URL. |
---|
26 | * |
---|
27 | * The search is case-sensitive, and the caller is responsible for removing any |
---|
28 | * percent escapes, as well as "+" escapes, too. |
---|
29 | * |
---|
30 | * @param key The key whose value should be located and returned. |
---|
31 | * @return The argument for the specified key, or \c nil if the key could not |
---|
32 | * be found in the query string. |
---|
33 | */ |
---|
34 | - (NSString *)queryArgumentForKey:(NSString *)key; |
---|
35 | |
---|
36 | @end |
---|