1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008-2022 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
|
|
|
1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008-2023 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE.QPL included in
* the packaging of this file.
*
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
* @brief The string with percent encoding removed.
*
* @throw OFInvalidFormatException The string is not in proper percent encoding
*/
@property (readonly, nonatomic) OFString *stringByRemovingPercentEncoding;
/**
* @brief Percent-encodes a string for use in a URI, but does not escape the
* specified allowed characters.
*
* @param allowedCharacters A character set of characters that should not be
* escaped
*
* @return A new autoreleased string
*/
- (OFString *)stringByAddingPercentEncodingWithAllowedCharacters:
(OFCharacterSet *)allowedCharacters;
@end
OF_ASSUME_NONNULL_END
|
|
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
* @brief The string with percent encoding removed.
*
* @throw OFInvalidFormatException The string is not in proper percent encoding
*/
@property (readonly, nonatomic) OFString *stringByRemovingPercentEncoding;
/**
* @brief Percent-encodes a string for use in an IRI, but does not escape the
* specified allowed characters.
*
* @param allowedCharacters A character set of characters that should not be
* escaped
*
* @return A new autoreleased string
*/
- (OFString *)stringByAddingPercentEncodingWithAllowedCharacters:
(OFCharacterSet *)allowedCharacters;
@end
OF_ASSUME_NONNULL_END
|