Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.666 kb
// PKToken+GBToken.m
// appledoc
// Created by Tomaz Kragelj on 23.7.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
#import "PKToken+GBToken.h"
@implementation PKToken (GBToken)
- (BOOL)matches:(NSString *)string {
return [[self stringValue] isEqualToString:string];
- (BOOL)contains:(NSString *)string {
return ([[self stringValue] rangeOfString:string].location != NSNotFound);
- (BOOL)isAppledocComment {
if ([self isComment]) {
if ([[self stringValue] hasPrefix:@"///"]) return YES;
if ([[self stringValue] hasPrefix:@"/**"]) return YES;
if ([[self stringValue] hasPrefix:@"/*!"]) return YES;
return NO;
Jump to Line
Something went wrong with that request. Please try again.