Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.609 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;
}
return NO;
}
@end
Jump to Line
Something went wrong with that request. Please try again.