NSString(VSSXMLEscape) Category Reference

Declared in NSString+VSSXMLEscape.h

Overview

Helper category for adding/removing percent escaping in strings.

+ stringWithPercentEscapesForString:

Adds percent escapes for the symbols =,!$&‘()*+;@?\n\“<>#\t :/ to the srcString. Composes new string as a result.

+ (NSString *__nonnull)stringWithPercentEscapesForString:(NSString *__nonnull)srcString

Parameters

srcString

String which needs to be percent escaped.

Return Value

New string composed as a srcString with percent escapes of the required symbols.

Declared In

NSString+VSSXMLEscape.h

+ stringRemovePercentEscapesForString:

Removes percent escapes from the srcString. Composes new string as a result.

+ (NSString *__nonnull)stringRemovePercentEscapesForString:(NSString *__nonnull)srcString

Parameters

srcString

String which needs to remove percent escapes

Return Value

New string composed as a srcString without percent escapes.

Declared In

NSString+VSSXMLEscape.h