PKToken(GBToken) Category Reference

Declared in PKToken+GBToken.h<br />PKToken+GBToken.m

Overview

Defines extensions to PKToken which simplify parsing code.

Tasks

Other Methods

Other Methods

Instance Methods

contains:

Determines if this token's string value contains the given string.

- (BOOL)contains:(NSString *)string

Parameters

string
The string to compare with.

Return Value

Returns YES if the string value contains string, NO otherwise.

Discussion

Determines if this token's string value contains the given string.

Declared In

PKToken+GBToken.h
PKToken+GBToken.m

isAppledocComment

Determines whether this token is an appledoc comment.

- (BOOL)isAppledocComment

Return Value

Returns YES if the token represents appledoc comment, NO otherwise.

Discussion

Determines whether this token is an appledoc comment.

The method returns YES if the token is a comment and it has special appledoc comment prefix which for single line comments is composed of three slashes and for multiple line comments from a single slash and two stars.

Declared In

PKToken+GBToken.h
PKToken+GBToken.m

matches:

Determines if this token's string value is equal to the given string.

- (BOOL)matches:(NSString *)string

Parameters

string
The string to compare with.

Return Value

Returns YES if the string value is equal, NO otherwise.

Discussion

Determines if this token's string value is equal to the given string.

Declared In

PKToken+GBToken.h
PKToken+GBToken.m