Declared in PKToken+GBToken.h
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.

Declared In

PKToken+GBToken.h

isAppledocComment

Determines whether this token is an appledoc comment.

- (BOOL)isAppledocComment

Return Value

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

Discussion

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

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.

Declared In

PKToken+GBToken.h