JubeatPlus 3.9.11
Loading...
Searching...
No Matches
NSStringURLEncoding Class Reference

Wraps the two CoreFoundation percent-escape calls. More...

#include <NSStringURLEncoding.h>

Inheritance diagram for NSStringURLEncoding:
Collaboration diagram for NSStringURLEncoding:

Class Methods

(nullable NSString *) + URLEncodedString:
 Percent-encodes a string for use in a URL query component.
(nullable NSString *) + URLDecodedString:
 Percent-decodes a URL-encoded string.

Detailed Description

Wraps the two CoreFoundation percent-escape calls.

Method Documentation

◆ URLDecodedString:

+ (nullable NSString *) URLDecodedString: (nullable NSString *) string

Percent-decodes a URL-encoded string.

Leaves nothing escaped, so every sequence in the input is decoded.

Parameters
stringThe percent-encoded string to decode.
Returns
The decoded string, or nil when CoreFoundation could not convert it.
Ghidra address:
0x235e4c

◆ URLEncodedString:

+ (nullable NSString *) URLEncodedString: (nullable NSString *) string

Percent-encodes a string for use in a URL query component.

Escapes the RFC 3986 reserved set plus the percent sign and square brackets, in UTF-8.

Parameters
stringThe string to encode.
Returns
The encoded string, or nil when CoreFoundation could not convert it.
Ghidra address:
0x235df4

The documentation for this class was generated from the following file: