whitespace tabkill
This commit is contained in:
parent
7241e3e30e
commit
0c38a9e555
|
@ -65,7 +65,7 @@
|
||||||
@"<D:href>"];
|
@"<D:href>"];
|
||||||
[r appendContentString: baseURL];
|
[r appendContentString: baseURL];
|
||||||
if (![baseURL hasSuffix: @"/"])
|
if (![baseURL hasSuffix: @"/"])
|
||||||
[r appendContentString: @"/"];
|
[r appendContentString: @"/"];
|
||||||
[r appendContentString: name];
|
[r appendContentString: name];
|
||||||
[r appendContentString: @"</D:href>"
|
[r appendContentString: @"</D:href>"
|
||||||
@"<D:propstat>"
|
@"<D:propstat>"
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
|
|
||||||
- (void) _appendComponentsMatchingFilters: (NSArray *) filters
|
- (void) _appendComponentsMatchingFilters: (NSArray *) filters
|
||||||
toResponse: (WOResponse *) response
|
toResponse: (WOResponse *) response
|
||||||
context: (id) localContext
|
context: (id) localContext
|
||||||
{
|
{
|
||||||
unsigned int count, max;
|
unsigned int count, max;
|
||||||
NSDictionary *currentFilter, *contact;
|
NSDictionary *currentFilter, *contact;
|
||||||
|
@ -123,10 +123,10 @@
|
||||||
newString = [theString lowercaseString];
|
newString = [theString lowercaseString];
|
||||||
|
|
||||||
return ([newString isEqualToString: @"sn"]
|
return ([newString isEqualToString: @"sn"]
|
||||||
|| [newString isEqualToString: @"givenname"]
|
|| [newString isEqualToString: @"givenname"]
|
||||||
|| [newString isEqualToString: @"email"]
|
|| [newString isEqualToString: @"email"]
|
||||||
|| [newString isEqualToString: @"mail"]
|
|| [newString isEqualToString: @"mail"]
|
||||||
|| [newString isEqualToString: @"telephonenumber"]);
|
|| [newString isEqualToString: @"telephonenumber"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary *) _parseContactFilter: (id <DOMElement>) filterElement
|
- (NSDictionary *) _parseContactFilter: (id <DOMElement>) filterElement
|
||||||
|
@ -145,12 +145,12 @@
|
||||||
ranges = [filterElement getElementsByTagName: @"text-match"];
|
ranges = [filterElement getElementsByTagName: @"text-match"];
|
||||||
|
|
||||||
if ([(NSArray *) ranges count]
|
if ([(NSArray *) ranges count]
|
||||||
&& [(NSArray *) [[ranges objectAtIndex: 0] childNodes] count])
|
&& [(NSArray *) [[ranges objectAtIndex: 0] childNodes] count])
|
||||||
{
|
{
|
||||||
filterData = [NSMutableDictionary dictionary];
|
filterData = [NSMutableDictionary dictionary];
|
||||||
[filterData setObject: [(NGDOMNode *)[ranges objectAtIndex: 0] textValue]
|
[filterData setObject: [(NGDOMNode *)[ranges objectAtIndex: 0] textValue]
|
||||||
forKey: [filterElement attribute: @"name"]];
|
forKey: [filterElement attribute: @"name"]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return filterData;
|
return filterData;
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
filters = [NSMutableArray array];
|
filters = [NSMutableArray array];
|
||||||
|
|
||||||
children = [(NSArray *)[parentNode getElementsByTagName: @"prop-filter"]
|
children = [(NSArray *)[parentNode getElementsByTagName: @"prop-filter"]
|
||||||
objectEnumerator];
|
objectEnumerator];
|
||||||
while ((node = [children nextObject]))
|
while ((node = [children nextObject]))
|
||||||
{
|
{
|
||||||
filter = [self _parseContactFilter: node];
|
filter = [self _parseContactFilter: node];
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
|
|
||||||
[self _appendComponentsMatchingFilters: filters
|
[self _appendComponentsMatchingFilters: filters
|
||||||
toResponse: r
|
toResponse: r
|
||||||
context: queryContext];
|
context: queryContext];
|
||||||
[r appendContentString: @"</D:multistatus>"];
|
[r appendContentString: @"</D:multistatus>"];
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in a new issue