Permalink
Browse files

rename search: to searchWithXPathQuery: and at: to peekAtSearchWithXP…

…athQuery:
  • Loading branch information...
1 parent 9a475c8 commit fd5ec102a55ce08f68c6f2060acfcdfb2d3a13a3 Zach Drayer committed Jul 8, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 TFHpple.h
  2. +3 −3 TFHpple.m
View
@@ -41,8 +41,8 @@
- (id) initWithData:(NSData *)theData isXML:(BOOL)isDataXML;
- (id) initWithHTMLData:(NSData *)theData;
- (id) initWithXMLData:(NSData *)theData;
-- (NSArray *) search:(NSString *)xPathOrCSS;
-- (TFHppleElement *) at:(NSString *)xPathOrCSS;
+- (NSArray *) searchWithXPathQuery:(NSString *)xPathOrCSS;
+- (TFHppleElement *) peekAtSearchWithXPathQuery:(NSString *)xPathOrCSS;
@property (retain) NSData * data;
View
@@ -63,7 +63,7 @@ - (id) initWithHTMLData:(NSData *)theData
}
// Returns all elements at xPath.
-- (NSArray *) search:(NSString *)xPathOrCSS
+- (NSArray *) searchWithXPathQuery:(NSString *)xPathOrCSS
{
NSArray * detailNodes = nil;
if (isXML) {
@@ -82,9 +82,9 @@ - (NSArray *) search:(NSString *)xPathOrCSS
}
// Returns first element at xPath
-- (TFHppleElement *) at:(NSString *)xPathOrCSS
+- (TFHppleElement *) peekAtSearchWithXPathQuery:(NSString *)xPathOrCSS
{
- NSArray * elements = [self search:xPathOrCSS];
+ NSArray * elements = [self searchWithXPathQuery:xPathOrCSS];
if ([elements count] >= 1)
return [elements objectAtIndex:0];

0 comments on commit fd5ec10

Please sign in to comment.